Skip to main content
2 of 3
added 204 characters in body
FloHimself
  • 11.8k
  • 3
  • 24
  • 24

Maybe you can use awk's range patterns here:

tail -f logfile | awk '/ddddddddddddddd/,/hhhhhhhhhhhhhhh/'

If you need to circumvent the SIGPIPE problem you can use socat instead of tail for the job:

socat -u file:logfile,ignoreeof 'exec:"awk /ddddddddddddddd/,/hhhhhhhhhhhhhhh/"'
FloHimself
  • 11.8k
  • 3
  • 24
  • 24