3

I am using multitail to monitor logs while I program. I really like this tool. However, it is hard to use it to view object output in a php error log because new line characters \n are not processed. Does anyone know of a way to achieve this?

fraxture
  • 172
  • 1
  • 7

1 Answers1

1

combining the answer for tail:

tail -f file | sed 's/\\n/\n/g'

with the -l option in multitail:

multitail -l "tail -f file | sed 's/\\\n/\\n/g'"

note: the additional escape on the \n

extra hint:
(will color all files and merge them into one multitail window):

multitail -C fileUNfiltered -L "tail -f file | sed 's/\\\n/\\n/g'"
gotjosh
  • 140
  • 4