I have the below two commands in my script.
tar -xf hello.tar
unzip -o tempp.zip
When i run the script i see the below on my standard out.
How can i suppress output coming from both the tar and unzip on my standard output.
I have the below two commands in my script.
tar -xf hello.tar
unzip -o tempp.zip
When i run the script i see the below on my standard out.
How can i suppress output coming from both the tar and unzip on my standard output.
Do you see them on standard output, or do you see them on your terminal? I suspect they're actually going to standard error, which can be diverted.
command 2>/dev/null
I do not know how to differentiate between terminal and standard output.
With your suggestion I was able to suppress tar output
But, unzip -o tempp.zip 2>/dev/null
still prints the output like below which i wish to avoid.
man unzip
: