Extract the last line of files in bulk
How can I extract just the last line of files and save them to other files?
My program created many huge data files. I need to extract just the last line of each and save it to another file. That is, if I have 10 files, I need to extract the last line of each one and save them to 10 new files.
What's the easiest way to do that in Bash Linux?
Thanks.
|