Skip to content

Instantly share code, notes, and snippets.

@badcrc
Created August 6, 2013 06:30
Show Gist options
  • Save badcrc/6162525 to your computer and use it in GitHub Desktop.
Save badcrc/6162525 to your computer and use it in GitHub Desktop.
One-liner gzip to bzip2, for FreeBSD
find . -name "*.gz" | perl -pi -e 's/\.gz$//g;' | awk '{printf("gunzip %s.gz && bzip2 %s\n",$1,$1)}' | csh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment