쉘스크립트 작성 참고 자료들
페이지 정보
본문
ㅁ find 명령에서 현재폴더(.) 제외 하기
# find . ! -path . -type d
https://stackoverflow.com/questions/13525004/how-to-exclude-this-current-dot-folder-from-find-type-d
ㅁ find 명령에서 정규표현식 사용
# find . -regex '^./[0-9]*$'
https://unix.stackexchange.com/questions/439499/find-command-to-list-the-directory-names-which-consists-only-of-numbers-0-9
ㅁ 폴더 없으면 생성
mkdir -p dir
또는
if [ ! -d $dir ]; then
mkdir $dir
fi
https://reoim.tistory.com/entry/%EC%89%98%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%A1%9C-%ED%8F%B4%EB%8D%94-%EC%97%86%EC%9C%BC%EB%A9%B4-%EC%83%9D%EC%84%B1%ED%95%98%EA%B8%B0
# find . ! -path . -type d
https://stackoverflow.com/questions/13525004/how-to-exclude-this-current-dot-folder-from-find-type-d
ㅁ find 명령에서 정규표현식 사용
# find . -regex '^./[0-9]*$'
https://unix.stackexchange.com/questions/439499/find-command-to-list-the-directory-names-which-consists-only-of-numbers-0-9
ㅁ 폴더 없으면 생성
mkdir -p dir
또는
if [ ! -d $dir ]; then
mkdir $dir
fi
https://reoim.tistory.com/entry/%EC%89%98%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8%EB%A1%9C-%ED%8F%B4%EB%8D%94-%EC%97%86%EC%9C%BC%EB%A9%B4-%EC%83%9D%EC%84%B1%ED%95%98%EA%B8%B0
추천0
댓글목록
등록된 댓글이 없습니다.