[TAG] 2c tip: filtering in-place

Thomas Adam thomas_adam16 at yahoo.com
Fri Mar 19 21:57:17 MSK 2004


 --- "Jay R. Ashworth" <jra at baylink.com> wrote: 

> > buffer < foo | filter > foo
> 
> <interrupts self while raising hand to complain>
> 
> Oh, cause buffer reads the entire file before the '>' can stomp it?
> 
> Well, that's not *exactly* the same... :-)

What do you mean, Jay?
 
> Doesn't that still depend on order of evaluation by the shell?  Is that
> defined?

Well, yes....

1. buffer < foo
2. | filer is acted upon
3. Resultant output to file

-- 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 
http://uk.messenger.yahoo.com/download/index.html




More information about the TAG mailing list