Skip to content

Instantly share code, notes, and snippets.

@moneal
Created August 19, 2011 19:13
Show Gist options
  • Save moneal/1157728 to your computer and use it in GitHub Desktop.
Save moneal/1157728 to your computer and use it in GitHub Desktop.
Print line 58 in the format "<filename>:<line number> <line>" for all inc files
find . -type f -name "*.inc" -exec awk 'NR==58 {print FILENAME ":" NR ": " $0 }' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment