[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] simple piping



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 . . .))