Skip to content

Instantly share code, notes, and snippets.

@e7d
Created June 16, 2017 08:28
Show Gist options
  • Save e7d/665c03b14c3a686c242e33df603140bd to your computer and use it in GitHub Desktop.
Save e7d/665c03b14c3a686c242e33df603140bd to your computer and use it in GitHub Desktop.
Tail with proper line breaks in log file
# Tail with proper line breaks in log files
function tail_linebreak() {
tail $@ | sed "s/\\\n/\\n/g"
}
alias tailn=tail_linebreak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment