Shell Scripting : > &> >&
scriptname >filename redirects the output of
scriptname to file
filename. Overwrite
filename if it already exists.
command &>filename redirects both the
stdout and the
stderr of
command to
filename.
command >&2 redirects
stdout of
command to
stderr.
No comments:
Post a Comment