I need to hide content of .sh script and only show echo "messajes". The equivalent of windows batch: @echo off


echo "Download..."
wget http://mypage.com/files/file.zip
echo "Ending..."
sed -e '/^#/d' file2.tar.gz | sed 's/^/./' | sort -u > out
echo "Done"

I need this result in console:

  • 2
    @echo off is there to hide the commands themselves being printed but that's the default in bash (and AFAIK there isn't even any option to activate the DOS behavior either). – phk Oct 27 '16 at 19:51
  • wget -quiet mypage.com/files/file.zip – Kamaraj Oct 28 '16 at 1:34
  • Thanks @Kamaraj. That's what I was looking. Put your complete answer to select it as correct – ajcg Oct 28 '16 at 23:19
  • @Kamaraj the question has been reopened, please post your answer. – terdon Oct 29 '16 at 13:09

Use this command...

wget -quiet file.zip

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.