Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hello guys !
- That's supposedly simple, but I can't get it to work, can I please humbly ask for quick coding help ?
- - I have a code line that works
- - and I want to adapt it to a slightly different use
- *
- My code line that works :
- find . -name '*.zip' -exec zip -fv {} \;
- That runs zip -fv on all the zip files inside the current directory. With the result to "freshen" the files if I'm storing in the current directory a different version of one of the files present in the zips.
- *
- The different zip command I want to replace the former zip command with :
- zip -rv target_file.zip totally_NEW_file_to_add
- Why ? To make sure ALL the zip files contain a certain file. The zips already having that file will be unaffected, the zips that didn't have that file yet will see that file added to them.
- Actual example :
- zip -rv Noukyuu\,_Coach_\(English\)_\(www.hentairules.net\).zip notes\ and\ info\ from\ the\ uploader.txt
- adding: notes and info from the uploader.txt (in=2010) (out=1009) (deflated 50%)
- total bytes=7574719, compressed=7245537 -> 4% savings
- That added the file "notes and info from the uploader.txt" to the file Noykyuu,_Coach_(English)_(www.hentairules.net).zip
- *
- And where I'm clueless, it's to replace the generic
- "zip -fv" "to all the files one after the other"
- with
- "zip -rv" "to all the files one after the other" notes\ and\ info\ from\ the\ uploader.txt
- After : find . -name '*.zip' -exec ... well, exec something.
- Please, would you know how it can be done ?
- Thank you very much ! :)
Add Comment
Please, Sign In to add comment