Popular
Latest Articles
- How to Secure your Cisco Router
- Creating CLI Views on a Cisco Router
- Configuring TACACS+ on a Cisco Router
- How to enable SDM on your router
- Build a Samba Server on Redhat / CentOS
- How to set the Time / Date and Timezone in CentOS
- How to install SSH on Solaris 10 x86
- ESX4 - How do I turn on/off a Virtual Machine from the command line ?
Recursive ZIP command
Tuesday, 17 February 2009 07:10
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
We have 20 guests online