I have a list with the path of .zip files, gathered by the command below. I want to unzip them into that directory, where they exist.
find . -name "*.zip" -print > outfile.txt
outfile.txt is like:
./TWO/two.zip
./ONE/one.zip
I have run_all
script to automatize it, but how can I define the output directory?
run_all outfile.txt 'unzip -u $1'
Best Answer
Use the
-d
flag.To automate it:
EDIT: As @dessert suggests, you may do this as a better alternative: