0

As the title, suppose I have a set of files in a folder. Is it possible to compress every of them in separate files? Something like

7z *

1 Answer 1

0

as an example to compress every individual .jpg
cd dir/

for f in `ls -1 *.jpg` ; 
do
     7z a  "$f.7z" "$f" ;
done

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .