[TAG] More on filtering in-place
thomas_adam16 at yahoo.com
Fri Apr 16 12:36:59 MSD 2004
--- Jason Creighton <androflux at softhome.net> wrote:
> That occured to me. (*after* I posted my message, of course)
Of course, Jason.
> > > But I'm curious: How does this work at all? What, exactly, does
> > > [it] tell the shell?
> > '< file' says open "file" in read mode and call it file-descriptor 0
> > '1<> file' says open "file" in read/write mode (means notrunc open)
> > and call it file-descriptor 1 (=stdout)
> Cool, I didn't know this. (Well, obviously, otherwise I wouldn't be
> asking what it does.)
It's just using file descriptors.
-- Thomas Adam
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor" -- http://linuxgazette.net
"<shrug> We'll just save up your sins, Thomas, and punish
you for all of them at once when you get better. The
experience will probably kill you. :)"
-- Benjamin A. Okopnik (Linux Gazette Technical Editor)
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
More information about the TAG