Carlo Sogono wrote:
You're right. I had forgotten this method of redirection as I've always used cat >file to do this without specifying the file descriptor for stdin. I guess it would've been more recognisable for me in the form of

Hang on, I meant stdout. =P

something like `command 2>&1` (stderr > stdout). Thanks for the clarification.

Carlo


O Plameras wrote:
Carlo Sogono wrote:
True, actually not even man bash. If you execute the command you'll most likely get an error complaining about the file 1, create a file 1 and re-execute it and by using the magic commands ls and cat he'd figure it out without needing the man pages.
This is not going to produce errors because,

$cat 1>m1

means concatenate "std.input" into filename "m1".

Do this,

$cat 1>m1
The quick
brown fox
jumps over
the lazy
dog.
^D

And then
$cat m1

O Plameras


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to