 |
 |
Using 7zip app on many files
|
 |
|
 |
|
Forum Regular
Join Date: Dec 2003
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |