Skip to content

Instantly share code, notes, and snippets.

@stevekm
Last active September 22, 2015 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevekm/dc0a4c8a0a7c9c10dd1b to your computer and use it in GitHub Desktop.
Save stevekm/dc0a4c8a0a7c9c10dd1b to your computer and use it in GitHub Desktop.
Gzip a directory
#!/bin/bash
gzip -cvr /path/to/input/dir/ > /path/to/output.gz
# -c std out
# -r recursive through dir
# -v verbose, of course
# pipe to file you want output in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment