Recursive ZIP command

UNIX / Linux - General UNIX

This is a small command which will take each file in the directory that it is run in and zip the file and then remove the original.

for i in `ls` ; do zip=$(echo $i | sed s/iso/iso"."zip/) ; zip -r $zip $i && rm -fv $i ;  done

 

Article updates via email..


We have 20 guests online