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 |
31 |
Tags
- find
- Mac
- VirtualBox
- Windows
- resource
- 네트워크
- context
- xargs
- tomcat
- IntelliJ
- GIT
- import
- Windows 10
- grep
- netsh
- copy-dependencies
- JavaScript
- Eclipse
- 단축키
- Source
- 공통표준용어
- Quartz
- bash
- DB 도메인
- ssh
- port
- maVen
- web.xml
- lsof
- profile
Archives
- Today
- Total
목록2024/03/19 (1)
develog
[bash] grep, sed 로 파일 내용 바꾸기
grep 옵션 -r 하위 디렉토리 포함 -l 파일명만 출력 -n 라인 번호 포함 -i 대소문자 구분하지 않음 -E 정규표현식 사용 -w 단어가 정확히 일치하는 경우만 ## grep -r 로 실행하면 파일명과 내용이 출력된다 $ grep -r '123.456.7.' . ./get_file.sh:/usr/bin/sftp user01@123.456.7.80 -i 뒤에 공백 있음 $ grep -rl '123.456.7.' . | xargs sed -i '' 's/123.456.7.80/123.456.7.89/g'
카테고리 없음
2024. 3. 19. 16:52