[ILUG] Pipe Trimming question ...

Breathnach, Proinnsias (Dublin) breatpro at exchange.ie.ml.com
Thu Feb 22 17:02:13 GMT 2001


I knew there was an [0] obvious solution ...

Thanks :o)

P

[0] OK, Multiple !

> -----Original Message-----
> Subject:	[ILUG] Pipe Trimming question ...
> 
> Question,
> Is there an easy way to remove the final line from a file (pref without
> resorting to something akin to 
> head -`wc -l <filename> | awk '{print $2}'` <filename>
> 
> I'd prefer if the solution were pipable 
> 
> myscriptwithoutput.sh | lastlineremover.sh > filename
> 
> 
> Proinnsias
> 





More information about the ILUG mailing list