Created
March 5, 2012 12:46
-
-
Save djKianoosh/1978188 to your computer and use it in GitHub Desktop.
gunzip a bunch of log files, sort them by the file name, then concat them into one log file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gunzip $1$2 | |
cat $(find ./ -name "$1$2" | sort -V) > $1.log | |
rm $1$2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment