Archiving One Folder at a Time

Discussion in 'Mac Programming' started by flashuni, Jun 8, 2008.

  1. flashuni macrumors newbie

    Joined:
    Jun 7, 2008
    #1
    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
     
  2. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2

Share This Page