Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[의뢰][SH] 특정 디렉토리 이하 폴더별 압축 파일 생성 스크립트 작성 #5

Open
LowyShin opened this issue Aug 20, 2019 · 0 comments
Assignees

Comments

@LowyShin
Copy link
Owner

LowyShin commented Aug 20, 2019

리눅스에서 디렉토리를 지정하면 그 하위 디렉토리들을 각각의 압축파일을 생성하는 스크립트를 만들고 싶어요..

요건은 아래와 같습니다.

  1. 하위 디렉토리별 tar.gz 파일 생성
  2. tar cvzf 를 이용해서 압축
  3. 이미 압축된 파일은 스킵
  4. 압축된 파일 중에 내용이 하나도 없는건 삭제하고 재작성

사용예

giipcomp.sh /usr/local/lowy

이렇게 하면 /usr/loca/lowy 아래쪽의 모든 디렉토리는 각각의 디렉토리가 하나의 파일로 전체 압축 되었으면 함.

의뢰비 : 5000GIIP

@LowyShin LowyShin changed the title [SH] 특정 디렉토리 이하 폴더별 압축 파일 생성 스크립트 작성 [의뢰][SH] 특정 디렉토리 이하 폴더별 압축 파일 생성 스크립트 작성 Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants