I start on shell and i don't know how to compress a folder including just the .jpg and .jpeg files.
Anyone can help me?
Thank you
I start on shell and i don't know how to compress a folder including just the .jpg and .jpeg files.
Anyone can help me?
Thank you
$ tar cvf jpeg.tar $(find /path/to/folder -iregex ".*\.jpe?g")
$ find /path/to/folder -type f -iregex ".*\.jpe?g" | xargs tar cvf jpg.tar
Go to folder
zip archive *.jpg *.jpeg
else, from anywhere
zip archive /path/to/folder/*.jpg /path/to/folder/*.jpeg
archive is the output file.