Pages

Tuesday, October 31, 2017

Find text after Tag/Word



  • grep -oP "tag\K.*" file  (perl)


  • sed -n -e 's/^.*\(COM Stmt=\)//p'  xxx 
grep -oP "from\s+\K\w+" input.txt