Skip to content

Instantly share code, notes, and snippets.

@djwglpuppy
Created August 6, 2012 19:49
Show Gist options
  • Select an option

  • Save djwglpuppy/3277947 to your computer and use it in GitHub Desktop.

Select an option

Save djwglpuppy/3277947 to your computer and use it in GitHub Desktop.
command shell commands

Grab the ErrorType and Sort from an errors output

nl errors.txt | grep -E '\d+\s?\w+Error' | sort -k2

Grab the latest numeric increment from a tag (change the substr value)

git tag | grep victoryhawk | awk '{print substr($1,12); }' | sort -n | tail -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment