I am trying to zip a directory, but I have a list of specific files that I need to ignore. This list is generated with a script and is quite long so when I pass them to the zip
command I get an error saying that the command line is too long.
I basically need the functionality asked in this question - Argument list too long when zipping large list of certain files in a folder - but for the -x
option to ignore the files instead of add them.
These files are in various subdirectories and don't follow a specific naming convention so there is no clear pattern to ignore them without specifying them all individually.
Is there any way to do this?