I have LAPP.NT.APC.HIST.zip file, I'm extracting,
$ unzip LAPP.NT.APC.HIST.ZIP
PKZIP for z/OS by PKWARE
how can get the specific inflating filename? If I get the filename, I want to assign into one variable like, How to do?
find . -type f -name "*.*"
Please help! Thank You !!!
unzip -l filename.zip will print the names, uncompressed file sizes and modification dates and times contained in an archive without inflating it.
unzip -Z1 peace.zip is more suitable here i think as it will display filenames only.
Here are the filenames contained in a zip file assigned to a variable:
files_zipped=$(unzip -Z1 filename.zip)