Awk on multiple .gz files
Hi all,
Hi have a dir with 6 sub-dirs that have about 165 .txt.gz files. What i want to do is to print from the last blank line until eof. I can do it for one file, but can't figure it out for multiple files. For one file i do this way: Quote:
|
I got it.
Quote:
|
Be cautious of using for loop as if file names contain spaces it will fail.
Also you could remove tac and using a more simple awk like: Code:
zcat "$i" | awk 'END{print}' RS="" |
Thanks for the tips ;)
|
All times are GMT -5. The time now is 11:13 AM. |