giovedì 21 gennaio 2010

Create a tar.gz for each subfolder

tested and working

for i in *; do if [ -d "$i" ]; then tar czf "$i".tar.gz "$i"; fi; done

from http://sidux.com/PNphpBB2-viewtopic-t-9922.html

Nessun commento:

Posta un commento