Need help with zipping files
find . | egrep 'avi|wmv|mpeg|mpg|asf|' -exec zip '{}' ';'What is wrong with this command
1. Find the files find . (the . specifies the directory im in)
2. | pipe that into egrep so that it finds files with extensions
'avi, wmv, mpeg, mpg and asf'
3. then exec to execute the find into a zip command
Although I dont understand the last bit ->'{}' ';'
My goal is to find video files and then zip them up.
So say I have over 200 video files already on the server, with one command I would like them all zipped into seperate files.