Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find . -name '.txt.' -print
- ./InstructionManager.txt.0
- ./InstructionManager.txt.1
- zip ./InstructionManager.txt.0.zip ./InstructionManager.txt.0
- mv ./InstructionManager.txt.0.zip ./InstructionManager.txt.0
- zip ./InstructionManager.txt.1.zip ./InstructionManager.txt.1
- mv ./InstructionManager.txt.1.zip ./InstructionManager.txt.1
- find . -name '*.txt.*' -print -exec zip '{}'.zip '{}' ; -exec mv '{}'.zip '{}' ;
- file InstructionManager.txt.*
- InstructionManager.txt.0: Zip archive data, at least v1.0 to extract
- InstructionManager.txt.1: Zip archive data, at least v1.0 to extract
- find . -name '*.txt.*' -exec zip '{}.zip' '{}' ;
- find . -name '*.txt.*' -print0 | xargs -0 -r -n1 -I % sh -c '{ zip %.zip %; mv %.zip %;}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement