10일 이상된 파일 삭제
sudo find . -ctime +10 -exec rm -f {} \;
하위디렉토리에 다수의 파일 찾아 삭제하기
*c 를 찾아 삭제한다.
하위디렉토리에 다수의 파일 찾아 바꾸기
jpg => JPG
확장자가 소문자로된 것을 대문자로 변경한다.
REF
https://man7.org/linux/man-pages/man1/find.1.html
find(1) - Linux manual page
find(1) — Linux manual page FIND(1) General Commands Manual FIND(1) NAME top find - search for files in a directory hierarchy SYNOPSIS top find [-H] [-L] [-P] [-D debugopts] [-Olevel] [starting-point...] [expression] DESCRIPTION
man7.org
https://recipes4dev.tistory.com/156
리눅스 find 명령어 사용법. (Linux find command) - 리눅스 파일 검색.
1. find 명령어. find는 리눅스에서 파일 및 디렉토리를 검색할 때 사용하는 명령입니다. 이름 그대로 리눅스에서 접근할 수 있는 파일 시스템에서, 파일 및 디렉토리를 "찾는(find)" 것이죠. 그런데
recipes4dev.tistory.com
https://www.lesstif.com/lpt/linux-find-43844055.html
여러 조건으로 파일을 찾는 Linux find 명령어 사용법
grep 의 옵션중에 -l, --files-with-matches 을 주어서 실행
www.lesstif.com

'LINUX' 카테고리의 다른 글
ln 디렉토리 링크 걸기 (0) | 2008.09.24 |
---|---|
리눅스 특정 단어 찾기 find grep (0) | 2008.09.10 |
ssh Secure Shell 파일 업로드시 에러 (0) | 2008.09.09 |
.bashrc (0) | 2008.08.06 |
ubuntu 7.10 vim sytax highlighting 안된다 (0) | 2008.06.26 |