티스토리 뷰
Unix/Linux
Replace a special character to newline character with grep and tail
Jared 2017. 10. 26. 16:25To replace a special character to newline character
Grep message with tail
tail -f #LOGFILE# | grep --line-buffered "GREP_MESSAGE" | awk '{gsub(/_/,"\n")}1'
Grep message from file
grep "GREP_MESSAGE" #LOGFILE# | awk '{gsub(/_/,"\n")}1'
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- docker
- bash
- Jose
- svn
- nodejs
- Kubernetes
- ssh
- SBM
- spring boot
- monitoring
- spring
- Oracle
- ubuntu
- OOP
- Maven
- Guava
- Heap
- Shell
- SMPP
- EMV
- Java
- Tomcat
- dump
- log4j
- install
- Dependency
- zookeeper
- JSF
- jboss
- bouncycastle
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함