
我需要wget
正確使用該實用程式。我想將某些連結的內容下載到一個文件中,以便將結果保存在列表中,而不是保存在一行中(即在一行中)
例如,如果我同時執行這兩個命令,結果將保存在一行中。
wget -qO- https://pastebin.com/raw/AsGwULK7
wget -qO- https://pastebin.com/raw/RkkRkak3
我需要添加什麼複選框來縮進每個下載的資料?(透過縮排我假設 "\ n"
模式)
答案1
{ wget -qO- https://pastebin.com/raw/AsGwULK7
printf '\n'
wget -qO- https://pastebin.com/raw/RkkRkak3; } >file