Created
January 29, 2012 03:25
-
-
Save ruby-fu-ninja/1696989 to your computer and use it in GitHub Desktop.
Extract controller and action from rails log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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