Bash malfunction, or something else ??

Jason L Tibbitts III tibbs at math.uh.edu
Mon Jan 24 04:33:34 UTC 2005


>>>>> "DC" == David Curry <dsccable at comcast.net> writes:

DC> There are six more lines of output sent to the display screen than
DC> are sent to a file via use of the > [filename] option in BASH.

That only redirects standard output, not standard error.  If you want
to redirect both, append " 2>&1" or use "&> filename".  See the
section "Redirecting Standard Output and Standard Error" in the bash
manual page.

 - J<




More information about the users mailing list