Skip to content

Instantly share code, notes, and snippets.

@Link-
Created February 27, 2013 00:25
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 Link-/5043704 to your computer and use it in GitHub Desktop.
Save Link-/5043704 to your computer and use it in GitHub Desktop.
# Linux # Will tarify all folders/files in a directory and create # a separate tar file for each
#!/bin/bash
# Will tarify all folders/files in a directory and create
# a separate tar file for each
for f in */; do tar -cvf "${f%/}.tar" "$f"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment