Advertisement
fplanzer

compress zip gzip

Apr 12th, 2018
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. # all files
  2. for f in *; do zip -9r "$f.zip" "$f"; done
  3.  
  4. # some files
  5. gzip foo{1,2,3}.wmv
  6. makes .gz files
  7.  
  8. # or
  9.  
  10. gzip {dead.letter,install.log,install.log.syslog}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement