Let zip read source file list from a file

by jw_   Last Updated September 12, 2019 03:02 AM

For example,

zip -r output.zip file1 file2 file3

I need to put the file list "file1 file2 file3" into a text file "input_list.txt", then use the command like:

zip -r output.zip -input input_list.txt

After zip -help, the only relative information it gave is this:

[email protected] read names from stdin

So I tried:

'cat input_list.txt'>'zip -r [email protected] output.zip'

But it doesn't work.

Tags : zip

Related Questions