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:
|
zcat file.txt.gz | tac | awk '{ if ($0 ~ /^$/) exit; else print $0}'
|
For multiple files i have to use "find . -type f | xargs zcat", and i don't know how to do that for each file found.