我需要隱藏 .sh 腳本的內容並僅顯示 echo“messajes”。相當於 Windows 批次:@迴聲關閉
例子:
echo "Download..."
wget http://mypage.com/files/file.zip
echo "Ending..."
sed -e '/^#/d' file2.tar.gz | sed 's/^/./' | sort -u > out
echo "Done"
我需要在控制台中得到這個結果:
Download..
Ending..
Done
答案1
使用這個指令...
wget -安靜檔案.zip