Skip to content
September 10, 2012 / doganay

HOW TO UNZIP MULTIPLE ZIP FILES in LINUX

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,


Problem:

You get this error if you try to zip multiple files:

$ unzip a*zip
Archive: a1.zip
caution: filename not matched: a2.zip


Solution:

Of course you can use a for loop, but if you want to use wildcard use single quote (‘):

$ unzip 'a*zip'
Archive:  a1.zip
inflating: a1.txt

Archive: a2.zip
inflating: a2.txt

2 archives were successfully processed.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: