Pages

Saturday, 28 September 2019

EX300 - write a script

key points:

Some times it may ask to print a message to stderr instead of stdout.

# print error message to stderr instead of stdout
echo 'Usage: xx' >& 2

OR

>& 2 echo 'Usage: xx'

No comments:

Post a Comment