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

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -