[sclug] Redirecting Tail to a file preserving end of lines
Dickon Hood
sclug at splurge.fluff.org
Mon Jul 18 13:52:33 UTC 2005
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