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
Latest posts by Rick Donato (see all)
- How to Configure a BIND Server on Ubuntu - March 15, 2018
- What is a BGP Confederation? - March 6, 2018
- Cisco – What is BGP ORF (Outbound Route Filtering)? - March 5, 2018