I saw cycles for unpacking all zip files in a directory. However, before I run this, I would rather make sure that what I am about to start will work correctly:
for i in dir; do cd $i; unzip '*.zip'; rm -rf *.zip; cd ..; done
Basically, I want him to look at the output of "dir" to see all the folders for each cd directory in it, unzip all the zip archives, then delete them, then cd go back and do it again until they are gone.
Is this something I should do in one command, or should I do it in Perl?
directory loops shell unzip
helpwithshell
source share