[ale] simple piping

Mike Fletcher fletch at phydeaux.org
Mon Mar 27 13:37:19 EST 2006


On Mar 25, 2006, at 9:22 AM, Geoffrey wrote:

> I can see we're going to have fun with this. The Rube Goldberg of  
> scripts:
>
> ls |tac|cat|tac|perl -ane|awk '{print}'|cut -f0-|sed n|paste

ITYM 'perl -ape 1'

Just "-n" will eat all the output (and not to mention that the -a for  
autosplit into @F is redundant since you never use it (then again  
that's probably the point and you should also add -l in to autochomp  
and append \n to output as well . . .))




More information about the Ale mailing list