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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -