Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Zip multiple files into individual archives via Automator' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Zip multiple files into individual archives via Automator
Authored by: megabulk on Oct 15, '11 01:03:44AM

for f in "$@"
do
    zip -r -j "$f" "$f"
done
will zip individual folders without the nested (absolute path) directory structure. Also, in Automator, make sure the "Pass Input" pulldown is set to "as arguments".

[ Reply to This | # ]