Skip to content

Instantly share code, notes, and snippets.

@Link-

Link-/gist:5043704

Created Feb 27, 2013
Embed
What would you like to do?
# 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