Shell+Curl調用一言api接口,每執行一次,返回一句話(亂搞)

效果圖: Code:web #!/bin/bash #調用一言api每打開一次顯示一段文字 #做者:iBosea curl https://v1.hitokoto.cn/ &>Yi.txt #Curl一言的api地址把結果重定向到Yi.txt cat Yi.txt |grep ""hitokoto"" |sed '1s/ "hitokoto": /碎言:/g' |sed '1s/,/./g
相關文章
相關標籤/搜索