It's very convenient to monitor logs using less command - you see what is going with your system as it happening. The bad thing is that my logs are optimized for grep tool: each atomic action is always printed in a single line (I can easily lookup for actions performed by certain user then).
Still, actions contain incoming messages, which are more user-friendly if being printed multiline. If I want to filter log "offline", it's easy:
cat ./log/system.log | tail -50 | tr '\\n' '\n'
Can I do those replacements "online"? What I mean is that replacements are done as new text being appended to log and shown to the screen like less + G.
tr '\\n' '\n'
would transliterate both backslash and n characters to a newline one with hafttr
implementations, and backslashes only in the other half. That is not substituting\n
with a newline character.