Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- plugin
- ssh
- IntelliJ
- Windows
- xargs
- find
- 네트워크
- Quartz
- port
- lsof
- vscode
- maVen
- Windows 10
- netsh
- 단축키
- JavaScript
- VirtualBox
- tomcat
- resource
- profile
- web.xml
- 줄바꿈 문자
- GIT
- Eclipse
- grep
- Source
- context
- import
- bash
- Mac
Archives
- Today
- Total
목록xargs (2)
develog
[bash] find egrep xargs grep, 파일 리스트 / 파일 내용 검색
파일 리스트 검색 find 로 파일을 검색하고 정규식으로 필터링한다 (egrep, grep -E) 파일명에 class 또는 xml 이 포함된 파일을 찾는다 ## egrep -i : 대소문자 무시 find . -type f | egrep -i 'class|xml' 확장자가 .jsp 로 끝나지 않는 jsp 파일을 검색한다 find . -type f | grep '.jsp' | grep -v -E '\.jsp$' 파일 내용 검색 파일명 필터링 (대소문자 무시) 파일 내용 검색 (대소문자 무시) 후 파일명과 내용 출력 find . -type f | egrep -i '(XML|PROPERTIES)$' | xargs egrep -i 'DEFAULT' 파일명 필터링 (.xml, .jsp) 내용에 'Logger'(대소..
OS & Shell/bash
2021. 3. 22. 17:44