Skip to content

Instantly share code, notes, and snippets.

@berryp
Last active December 23, 2015 13:59
Show Gist options
  • Select an option

  • Save berryp/6645531 to your computer and use it in GitHub Desktop.

Select an option

Save berryp/6645531 to your computer and use it in GitHub Desktop.
Grep output starting at column n.
# Strip the host and path information from the output.
tail -f /var/log/myservices.log | awk '/myproc/{ print substr($0, 82) }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment