Thursday, May 16, 2013

Create a zip file out of certain files in the file system

I had to generate several certificates today which I did from a script. To just pack them all I used the below which can be used to zip respecting any number of files respecting their directory structure.
find . -name "*.csr" -exec zip -g certs.zip {} +

No comments:

Followers