리눅스 분류
rm 명령어 관련
작성자 정보
- shbae81 작성
- 작성일
컨텐츠 정보
- 1,905 조회
- 3 댓글
- 0 추천
- 목록
본문
find . -name *.* -exec rm -f {} ;
에서 {} ; <-- 이건 뭘 의미하는 건가요??
관련자료
-
이전
-
다음
댓글 3
윤상호님의 댓글
- 윤상호
- 작성일
{} 출력하라..아닐까요..ㅋㅋ
잘모르것네요 ; 는 한줄 띄우는거 같구요.
현재 폴더에 모든파일을 찾아서 지워라, 그리고 출력해라 같은데..
도움되지못해 죄송합니다
잘모르것네요 ; 는 한줄 띄우는거 같구요.
현재 폴더에 모든파일을 찾아서 지워라, 그리고 출력해라 같은데..
도움되지못해 죄송합니다
늦둥이님의 댓글
- 늦둥이
- 작성일
{} 는 find 로 검색된 결과를 하나하나 차례로 실행시킨다는 의미죠
;는 find 결과가 1줄이상이 될때 보이지 않게 하나씩 엔터를 쳐준다고나 할까?
;는 find 결과가 1줄이상이 될때 보이지 않게 하나씩 엔터를 쳐준다고나 할까?
도리님의 댓글
- 도리
- 작성일
man find 해 보세요
find . -type f -exec file ’{}’ ;
Runs ‘file’ on every file in or below the current directory. Notice
that the braces are enclosed in single quote marks to protect them from
interpretation as shell script punctuation. The semicolon is simi‐
larly protected by the use of a backslash, though ’;’ could have been
used in that case also.
find . -type f -exec file ’{}’ ;
Runs ‘file’ on every file in or below the current directory. Notice
that the braces are enclosed in single quote marks to protect them from
interpretation as shell script punctuation. The semicolon is simi‐
larly protected by the use of a backslash, though ’;’ could have been
used in that case also.