Skip to content

Instantly share code, notes, and snippets.

@fideloper
Created September 12, 2012 15:20
Show Gist options
  • Select an option

  • Save fideloper/3707338 to your computer and use it in GitHub Desktop.

Select an option

Save fideloper/3707338 to your computer and use it in GitHub Desktop.
Find 'print_r' in php files, with file name and line number
#Reference: http://stackoverflow.com/questions/7600313/find-command-that-returns-line-number-of-the-string
find . -name '*.php' -print | xargs grep -Hn 'print_r'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment