create a list with content of multiple zip files in linux -


I am trying to create a script for linux which is a list with all the files inside the directory from all directories Will make / P>

  #! / Bin / bash * .zip * "-type f` for the file in / Find / home -iname" * * unzip-l $ (echo $ {file}) & gt; & Gt; /home/list.txt  

This works, but only when there is no white space in the file name. What can I do to make this work?

You find this command to execute a command for each file Maybe try to do something like this:

  find / home-name "* .zip *" -type f -exec unzip -l {} \; & Gt; /home/list.txt  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -