Human-readable logs in the terminal

I’ve put this together to watch the nextcloud.log file ‘live’

tail -f /opt/nextcloud-data/nextcloud.log | sed --unbuffered 's=\\\\n=\n=g' | sed 's=\\\\\\==g'

Cheers.

3 Likes