find where-to-look criteria what-to-do
Example 1)
find ./ -name *.url
You can use shell-style wildcards in the -name search argument:
find . -name foo\*bar
Example 2)
프로그램 컴파일 폴더 지울때 사용
find . -iname "build" -type d -print0 | xargs -0 rm -r
xargs -0; files with space in name
find -print0
It is safer to use ‘find -print0’ or ‘find -fprint0’ and process the output by giving the ‘-0’ or ‘--null’ option to GNU xargs, GNU tar, GNU cpio, or perl. The locate command also has a ‘-0’ or ‘--null’ option which does the same thing.
댓글 없음:
댓글 쓰기