Created
September 7, 2009 11:44
-
-
Save beef/182315 to your computer and use it in GitHub Desktop.
Regular expression to find log blocks for certain actions
This file contains 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
#!/bin/bash | |
# using all types of newlines, search for a rails log header for a certain action of a certain controller | |
# copy and paste into terminal | |
pcregrep -MN ANY 'Processing FatController#action_man([^\n]*\n){10}' log/production.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment