[sclug] Redirecting Tail to a file preserving end of lines

Sapan Ganguly sapan.ganguly at gmail.com
Mon Jul 18 14:22:30 UTC 2005


Excellent, thanks guys.  Both of those methods worked.

On 7/18/05, Dickon Hood <sclug at splurge.fluff.org> wrote:
> On Mon, Jul 18, 2005 at 14:35:51 +0100, Sapan Ganguly wrote:
> : Thanks for your reply but I tried that too and it still becomes one
> : long line in the new file.
> 
> for i in *.csv; do tail -1 $i && echo; done | sed -e '/^$/d'
> 
> OK, OK, not pretty...
> 
> --
> Dickon Hood
> 
> Due to constant nagging to change it, my .sig is temporarily unavailable.
> Normal service will be resumed as soon as possible.  We apologise for the
> inconvenience in the meantime.
> 
>



More information about the Sclug mailing list