I got 2 main folders Peliculas and Series, as you may guess Peliculas has movies on it (some of them on their own folder, the ones that have more than 1 file) and the folder Series has tv shows.
What I need is a command line or script so I can zip each subtitle ( .srt file) and move it to a folder on the home like ~/MovieSubtitles/We Own The Night.zip
and ~/SeriesSubtitles/Masters of Sex S01E11 - Phallic Victories.zip
The folder structure is something like this:
on Movies:
Peliculas
|-10 Things I Hate About You (1999) BRRip 1080p
|-10,000 B.C. (2008) BRRip 1080p
|-10th & Wolf (2006) DvDRip
etc...
on Tv Shows:
Series
|-Anger Management
| |-Anger Management 1x
| |-Anger Management 2x
|-Breaking Bad
| |-Breaking Bad 1x
| |-Breaking Bad 2x
| |-Breaking Bad 3x
etc..
And. Well. I have a lot. Really a lot so I need some script. Can't do it manually and want to keep a backup of each subtitle on the folders mentiones before, so I could upload them and make them available when needed like in the yifi subtitles website
So what I need is to zip each srt on the folder Peliculas recursively and Series also recursively (but in this case on 2 leveles, as each season is also on a subfolder inside the series' folder) , keeping the name of the srt file and place the zip on a folder on my home.
Any ideas?
/*************
* Edited
*************/
Google....ing.?... i came with this solution :
:~$ find /media/peliculas/ -name *.srt -exec zip '{}'.zip ~/subtitulos/peliculas/
(tryed -iname 'srt', -iname '.srt', -name '*srt' and others based on Bendrami's idead and it's all the same)
*find /media/peliculas -name .srt prints out the whole srt files (subtitles) list on the peliculas folder... but as soon as i use -exec
i got the error => find: missing argument to '-exec'
so plz help....
for some extra points.. :P may be best to name the zipfile as the folder containing the srt file as it hast the full name of the movie, the year and the quality.
Peliculas
? everything underAnger Management
and underBreaking Bad
?