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


Click here to return to the 'Create Finder-equivalent zip archives from the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create Finder-equivalent zip archives from the Terminal
Authored by: pwharff on Jan 05, '05 01:43:39PM
Or, create a shell script using the $n special variable and named it my Zip with an uppercase Z and don't forget to
chmod 755 Zip
and add it to /usr/local/bin so that you can execute it anytime:
#!/bin/bash

ditto -c -k -keepParent -rsrc $1 $2
...and to unzip, I created another shell script called Unzip:
#!/bin/bash

ditto -x -k -sequesterRsrc $1 .


[ Reply to This | # ]