Linux – Display \n characters as newlines when using tail

bashcommand-line-interfacelinux

I have a file that I am trying to read by using tail -f. I was wondering if there was a way to have the terminal output an actual line break instead of the \n character.

Best Answer

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