To create a new zip archive ‘filename.zip’ including only select files, you can use an expression argument after the command. Enter the following in your terminal to compress all jpg fies in current directory:
# zip filename.zip *.jpg
If you want to only compress mp4 files with ‘720p’ in the filename, enter the following:
# zip filename.zip *720p*.mp4
↧
Zip only some files (jpg) via unix command line
↧