You are not logged in.
Pages: 1
how can i extract maaaaaaany archive files that are all stored in one folder? i tried with
tar xjf *.tar.bz2
and
tar xzf *.tar.gz
but that didnt work :?
is there some way to achieve this :?:
thx in advance,
cheers,
detto
Offline
for f in *.tar.bz2; do tar xzf $f; done
for f in *.tar.gz; do tar xzf $f; done
Offline
for f in *.tar.bz2; do tar xzf $f; done for f in *.tar.gz; do tar xzf $f; done
woah! thank u this works.
just one small problem i got with archves that got spaces, %20's those one dont want to :?
Offline
try putting double quotes around $f like this: "$f"
Offline
try putting double quotes around $f like this: "$f"
dude :shock: thank u very much, without help i would have seen me trying out the weirdest possibilities without luck ... very appreciate this quick help, thx!
cheers,
detto
Offline
Yarrr...I would have gone with find:
find . -name "*.tar.bz2" -exec tar xzf {} ;
Offline
don't take it bad, but in kde ark would have done it with a mouse click...
what goes up must come down
Offline
don't take it bad, but in kde ark would have done it with a mouse click...
woop, really?! tell me how plz. have kde installed on nother computer
Offline
Yarrr...I would have gone with find:
find . -name "*.tar.bz2" -exec tar xzf {} ;
Heh, I got another one:
ls *.tar.bz2 | xargs -n1 tar xfz
Offline
Offline
I win for spawning less processes.
Yeah, but elasticdog wins for providing a solution that works even if you have a few thousand .tar.bz2 archives to extract (not sure what the exact maximum length for the argument list in bash or zsh are).
Offline
brazzmonkey wrote:don't take it bad, but in kde ark would have done it with a mouse click...
woop, really?! tell me how plz. have kde installed on nother computer
in konqueror, select the archive files, right-click > Extract > Extract [here ; to subfolders ; to...], and wait.
alright : one click to select, one right click, one to choose extract [...]
that's 3 clicks actually, not one. sometimes mouse is just easier...
what goes up must come down
Offline
I win for spawning less processes.
LOL...now all we have to do is fill this thread with dozens of variations on doing the same thing. Three down...millions to go?!?
Offline
I win for losing.
Offline
Pages: 1