Hi all,
I'm experiencing a really annoying problem. I have this directory structure, pulled from an svn server, which contains in some directories a zip file. This needs to be unzipped. I came up with this:
Code:
ls -R | grep zip | xargs locate | grep zip$ | xargs ./unzip.sh
The contents of my own unzip.sh script:
Code:
unzip -f -d `dirname $1` $1
What it is meant to do is get all zip files and unpack them in the directory where you found them. What it DOES is get the
first found zip file and correctly unpacks it and then STOPS! It is driving me mad fast.
This just works:
Code:
ls -R | grep zip | xargs locate | grep zip$ | xargs
Replacing the content of the unzip.sh file to echo $1 just echos the first argument again!
Can somebody help me?