↧
Answer by αғsнιη for Unzip archive with single file and rename output to...
The command unzip has its own option unzip -Z1 zipfile.zip to show the actual compressed filename within zipped file which is taking zipinfo's option -1 as it's zipinfo -1 zipfile.zip. so you could...
View ArticleAnswer by Jeff Schaller for Unzip archive with single file and rename output...
You could continue with the -d idea, and simply rename any extracted file to the desired "zip name minus the zip plus txt":mkdir tmpfor f in *.zip; do unzip "$f" -d tmp && mv tmp/*...
View ArticleUnzip archive with single file and rename output to match archive name
The goal is to unzip many zip files and rename the resulting file to the original archive name.Given a folder with many zip files, most of them containing a file called bla.txt, but of course there are...
View Article