Skip to content

Instantly share code, notes, and snippets.

@djKianoosh
Created March 5, 2012 12:46
Show Gist options
  • Save djKianoosh/1978188 to your computer and use it in GitHub Desktop.
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
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