ahb65
ahb65

Reputation: 191

bash- unzip compressed files in multiple directories at once

I have a directory with many directories inside, each have multiple bz2 files inside. How can I unzip all of them in bash using bzip2 in their own directories at once?

Upvotes: 0

Views: 73

Answers (1)

PradyJord
PradyJord

Reputation: 2160

Try following:

find ./ -iname "*.bz2" -exec bzip2 -d {} \;

Upvotes: 1

Related Questions