Output and Error redirect

$ command 2> /dev/null 1>&2

which is to

  • first redirects stderr to /dev/null and then
  • redirects stdout to point to the same place stderr is currently pointing to.

About albertsk

Professor at the University of Hawaii
This entry was posted in Uncategorized. Bookmark the permalink.