[sclug] Redirecting Tail to a file preserving end of lines
Sapan Ganguly
sapan.ganguly at gmail.com
Mon Jul 18 13:18:41 UTC 2005
Hello, how are you all?
I've been scratching my head over this one for the past hour or two,
how do I take the last line of a bunch of files and put them into a
new file? This is what I have been trying -
# tail --lines=1 --silent *.csv >> newfile
For some reason the end of lines aren't preserved, newfile ends up
being one really long line.
I've tried a few other ways but I get the same result.
Any ideas?
Thanks,
Sapan
More information about the Sclug
mailing list