Skip to content

Instantly share code, notes, and snippets.

@ruby-fu-ninja
Created January 29, 2012 03:25
Show Gist options
  • Save ruby-fu-ninja/1696989 to your computer and use it in GitHub Desktop.
Save ruby-fu-ninja/1696989 to your computer and use it in GitHub Desktop.
Extract controller and action from rails log
# Get number of lines
grep "Processing" log/development.log | wc -l
# Replace LINE_NUMBER the minimum line number
grep "Processing" log/development.log | awk 'NR > LINE_NUMBER { print $3 }' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment