Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Using 7zip app on many files

Using 7zip app on many files
Thread Tools
Forum Regular
Join Date: Dec 2003
Status: Offline
Reply With Quote
Feb 7, 2005, 12:53 PM
 
I hope this is in the right area. I have a whole lot of .7z zip files that I need to unzip. Pasting and gragging files into the terminal one by one is getting to be a pain. Is there any way to copy and paste a file name at the end of a shell script. Either using the apple script and/or the terminal.

Here is what I have:
/Downloads/7za x -o/Downloads/unizp /Downloads/*

x=to extract -o=output directory *=file name to extract.

These seem to be the available commands:
<Commands>
a: Add files to archive
d: Delete files from archive
e: Extract files from archive
l: List contents of archive
t: Test integrity of archive
u: Update files to archive
x: eXtract files with full pathname
<Switches>
-bd Disable percentage indicator
-i[r[-|0]]{@listfile|!wildcard}: Include filenames
-m{Parameters}: set compression Method
-o{Directory}: set Output directory
-p{Password}: set Password
-r[-|0]: Recurse subdirectories
-sfx[{name}]: Create SFX archive
-t{Type}: Set type of archive
-u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
-w[{path}]: assign Work directory. Empty path means a temporary directory
-x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
-y: assume Yes on all queries
-si: read data from stdin
-so: write data to stdout

I don't think that I see a command that will let me select a directory and unzip all the files that are in there.

If someone could please point me in the right direction I would really appreciate it.

Thanks for all your help.

Ernie
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Feb 7, 2005, 01:52 PM
 
I'm pretty sure you don't have a directory at "/Downloads", cuz that's system territory, and since Mac OS 9 is gone, nobody really puts stuff there. I'm guessing that was your first mistake. So I've never heard of 7zip, but from what you posted, you should be able to use the 7za executable like this:
Code:
cd ~/Downloads ./7za x *.7z -o unzip/
That command should extract all files from the "Downloads" folder that end in ".7z" to the folder "unzip" in your home directory.

"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Forum Regular
Join Date: Dec 2003
Status: Offline
Reply With Quote
Feb 7, 2005, 04:13 PM
 
Sorry about that. I was trying to remember what I typed from work since I'm not at my home mac.
I'll give that a try.

Thanks
     
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Reply With Quote
Feb 7, 2005, 06:41 PM
 
Originally posted by erniesthings:
Sorry about that. I was trying to remember what I typed from work since I'm not at my home mac.
I'll give that a try.

Thanks
Hey, it's cool, I still can't believe I hadn't at least heard of the 7zip format...
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Forum Regular
Join Date: Dec 2003
Status: Offline
Reply With Quote
Feb 7, 2005, 09:39 PM
 
I hadn't heard about it until I went to http://www.grh.se/. Then macmame emu forum had a post and I found a mac compiled version.

Thanks again
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:09 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2