일괄처리 쉘 스크립트

특정 작업을 반복할 때 사용하면 편하다.

batchrun() {
? ?TAR_FILE=$1
? ?echo “$TAR_FILE Starting”
? ?tar -zxvf $TAR_FILE -C 벡업파일저장위치 >> tar_xvf.log
}
batchrun tar파일명1.tar.gz
batchrun tar파일명2.tar.gz
batchrun tar파일명3.tar.gz
batchrun tar파일명4.tar.gz
batchrun tar파일명5.tar.gz

Keep Reading

이전다음

댓글

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다