Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

flashuni

macrumors newbie
Original poster
Jun 7, 2008
11
0
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.