Linux bash : find out from which zip file the file comes -
if unzip f.i. zipfile1.zip
zipfile2.zip
zipfile3.zip
i these files:
script1.txt script2.txt script3.txt script4.txt ... script10.txt
is there way know zip-file each file unzipped?
for example:
zipfile1.zip : script1.txt zipfile2.zip : script2.txt ...
you can write simple bash script that, instance :
#!/bin/bash in zipfile*.zip; unzip -l $i done
the option -l
command unzip
allows list content of zip archive in short format.
Comments
Post a Comment