LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-03-2003, 02:16 PM   #1
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Rep: Reputation: 30
Question unzip command options


using unzip... how can you unzip multiple zip files to one directory at the command line.
I have done this before but cannot remember for the life of me how I did it.
Ideas??? I know it must be an option....
 
Old 11-03-2003, 02:18 PM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
Code:
man unzip
Code:
unzip --help
 
Old 11-04-2003, 08:08 AM   #3
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
??? I have no idea what you are trying to say...
I have read the man pages... but found nothing.
I tried something and it worked...
if there is 20 zip files in a directory and you want to unzip all of them to ...
/usr/share/sword let say. Then here is what I found to work....
unzip \* -d thedirectorywherethefilesaregoing
that will unzip everything...

I hope this will help someone later!
 
Old 11-04-2003, 09:20 AM   #4
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 34
Generally, you have to escape (use the backslash in front of) the asterisk for a lot of commands that deal with files - find for example.

This can be confusing because the ls, ll... etc family doesn't require the escape character.
 
Old 11-04-2003, 11:10 AM   #5
jaa1180
Member
 
Registered: Oct 2003
Location: USA, Tennessee
Distribution: Ubuntu
Posts: 307

Original Poster
Rep: Reputation: 30
this is true...
I wonder what the meaning of the escape is... why do you have to escape?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Unzip 2 Zip files through one single command sumitarun Linux - Newbie 2 03-23-2005 08:00 AM
Command Line Options AUSanders79 Linux - Software 8 03-10-2005 10:24 AM
Wget command options help??? tekhead2 Linux - Software 1 06-23-2004 06:58 AM
unzip command with password in a script? captainhog Linux - General 1 03-29-2004 09:54 AM
Command Line Options in C++ crichards Programming 5 03-08-2003 03:42 PM


All times are GMT -5. The time now is 09:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration