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)
- NETCONF & YANG: Automate Network Configs via Python - April 2, 2026
- Palo Alto – How to Configure Your Next-Generation Firewall - April 2, 2026
- How to Harden Linux SSH: Keys, Fail2ban & Ciphers - March 1, 2026