PDA

View Full Version : Archiving One Folder at a Time




flashuni
Jun 8, 2008, 03:37 PM
Hello, I am trying to use the following shell script to zip every folder inside of my main folder named "fonts". Currently it zips the whole fonts folder and not just the folders inside of it. I would like it to zip the folders inside of it individually also.

ls -d /Users/*/Desktop/fonts | sed 's/^/"/;s/$/"/' | xargs -I {} -n1 zip -r {}.zip {}

Thanks, Flashuni



lee1210
Jun 8, 2008, 04:32 PM
This is the third thread on the same subject. It seems like you should pick the one you want people to respond to and lock, remove, etc. the other two. The others are here for reference:

http://forums.macrumors.com/showthread.php?t=495575

http://forums.macrumors.com/showthread.php?t=495761

-Lee