질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

find 특정경로 검색 문의드립니다.

작성자 정보

  • billy 작성
  • 작성일

컨텐츠 정보

본문

안녕하세요!!
여기서 많은 도움을 받고 있습니다.  
다름이 아니라

검색조건을  특정폴더 경로   '/A/B/ ' 가 포함된 폴더 검색
'/redmine/plugins' 으로 하고 싶은데 어떤식으로 표현이 가능 할까요?

지금은 아래와 같이 사용하고 있습니다.
root@nas:~# find /volume1/ -name 'plugins' -type d

===============================================================
검색결과
===============================================================
/volume1/web/mantisbt/plugins
/volume1/web/phpMyAdmin/templates/server/plugins
/volume1/web/phpMyAdmin/js/jqplot/plugins
/volume1/web/phpMyAdmin/test/classes/properties/plugins
/volume1/web/phpMyAdmin/libraries/properties/plugins
/volume1/web/phpMyAdmin/libraries/plugins
/volume1/@docker/aufs/mnt/10335fb225fc30b84802dbee02ee60d70759773c591194e498d6149c53dfb21f/home/redmine/redmine/plugins
/volume1/@docker/aufs/mnt/10335fb225fc30b84802dbee02ee60d70759773c591194e498d6149c53dfb21f/home/redmine/redmine/lib/plugins
/volume1/@docker/aufs/mnt/10335fb225fc30b84802dbee02ee60d70759773c591194e498d6149c53dfb21f/home/redmine/redmine/test/fixtures/plugins
/volume1/@docker/aufs/mnt/10335fb225fc30b84802dbee02ee60d70759773c591194e498d6149c53dfb21f/usr/lib/x86_64-linux-gnu/krb5/plugins
/volume1/@docker/aufs/mnt/10335fb225fc30b84802dbee02ee60d70759773c591194e498d6149c53dfb21f/usr/lib/python2.7/dist-packages/bzrlib/plugins
/volume1/@docker/aufs/diff/33974c17f2474b0bf914cbb38aabcf73cd02bae1a46687a4d2418c28a27ec77e/usr/lib/python2.7/dist-packages/bzrlib/plugins
/volume1/@docker/aufs/diff/33974c17f2474b0bf914cbb38aabcf73cd02bae1a46687a4d2418c28a27ec77e/usr/lib/x86_64-linux-gnu/krb5/plugins
/volume1/@docker/aufs/diff/c0497351e112ae5d67dc12894adcc4216c83c2382136c3166bfbfaa6a50a0fce/home/redmine/redmine/lib/plugins
/volume1/@docker/aufs/diff/c0497351e112ae5d67dc12894adcc4216c83c2382136c3166bfbfaa6a50a0fce/home/redmine/redmine/plugins
/volume1/@docker/aufs/diff/c0497351e112ae5d67dc12894adcc4216c83c2382136c3166bfbfaa6a50a0fce/home/redmine/redmine/test/fixtures/plugins
/volume1/@docker/aufs/diff/10335fb225fc30b84802dbee02ee60d70759773c591194e498d6149c53dfb21f/home/redmine/redmine/plugins

관련자료

댓글 1

billy님의 댓글

  • billy
  • 작성일
*** 자문 자답입니다 ******

root@nas:~# find /volume1/ -type d -regex '.*redmine/plugins'

-regex 옵션을 이용하면 되었네요~

공지사항


뉴스광장


  • 현재 회원수 :  60,066 명
  • 현재 강좌수 :  35,971 개
  • 현재 접속자 :  272 명