On Tue, 2011-06-21 at 12:10 -0500, Mike McCarty wrote: > If one wants BOTH outputs to go to the stdout file, then one > uses the &1 as the redirected output, like this > > $ xyz 2>&1 > > this makes fd 2 "point to" the same file as fd 1. So,
And it's very important to remember that it's "2>&1", not just "2>1" as I frequently see from those less proficient in shell scripting. The latter results in files (usually empty) with the name '1' scattered across the filesystem... Simon.
signature.asc
Description: This is a digitally signed message part
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
