-3

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

Examples:

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:

Download..
Ending..
Done
terdon
  • 242,166
acgbox
  • 941
  • 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 http://mypage.com/files/file.zip – Kamaraj Oct 28 '16 at 01:34
  • Thanks @Kamaraj. That's what I was looking. Put your complete answer to select it as correct – acgbox Oct 28 '16 at 23:19
  • @Kamaraj the question has been reopened, please post your answer. – terdon Oct 29 '16 at 13:09

1 Answers1

0

Use this command...

wget -quiet file.zip

Kamaraj
  • 4,365