소스 검색

added munzip command

master
mort 8 년 전
부모
커밋
ea3e119cb1
1개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 17
    0
      bin/munzip

+ 17
- 0
bin/munzip 파일 보기

@@ -0,0 +1,17 @@
#!/bin/bash

if [ "$1" = "" ]; then
echo "Usage: munzip <file>";
exit 1;
fi

if [ "$1" = *.tar.gz ]; then
tar xzf "$1"
elif [ "$1" = *.tar.bz2 ]; then
tar jxf "$1"
elif [ "$1" = *.zip ]; then
unzip "$1"
else
echo "Unknown format."
exit 1
fi

Loading…
취소
저장