Skip to content

Instantly share code, notes, and snippets.

@matthewsimo
Last active December 17, 2015 11:59
Show Gist options
  • Select an option

  • Save matthewsimo/5606246 to your computer and use it in GitHub Desktop.

Select an option

Save matthewsimo/5606246 to your computer and use it in GitHub Desktop.
quick little shell script to non-destructively gzip a file in place
#!/bin/bash
FILE=$1
$(gzip < $FILE > $FILE.gz)
@matthewsimo

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment