/ Published in: Bash
URL: http://bashscripts.org/viewtopic.php?t=231
http://bashscripts.org/viewtopic.php?t=231
Expand |
Embed | Plain Text
compress () { FILE=$1 case $FILE in *.tar.bz2) shift && tar cjf $FILE $* ;; *.tar.gz) shift && tar czf $FILE $* ;; *.tgz) shift && tar czf $FILE $* ;; *.zip) shift && zip $FILE $* ;; *.rar) shift && rar $FILE $* ;; esac
You need to login to post a comment.
