-4

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
4
  • 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, 2016 at 19:51
  • wget -quiet mypage.com/files/file.zip
    – Kamaraj
    Oct 28, 2016 at 1:34
  • Thanks @Kamaraj. That's what I was looking. Put your complete answer to select it as correct
    – acgbox
    Oct 28, 2016 at 23:19
  • @Kamaraj the question has been reopened, please post your answer.
    – terdon
    Oct 29, 2016 at 13:09

1 Answer 1

0

Use this command...

wget -quiet file.zip

0

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.