zip banyak file

untuk zip banyak file di linux

 

for i in *; do zip `basename $i .sh`.zip $i; done

 

sebagai catatan saja

tambahan

atau bisa juga

for f in *; do zip -9r ${f%.xls}.zip $f; done

untuk rename sekaligus banyak

for f in *.xls.zip; do mv $f ${f%.xls.zip}.zip ; done

 

1 thought on “zip banyak file”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.