File: findtext

package info (click to toggle)
regina-normal 4.5-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 16,824 kB
  • ctags: 7,862
  • sloc: cpp: 63,296; ansic: 12,913; sh: 10,556; perl: 3,294; makefile: 947; python: 188
file content (10 lines) | stat: -rwxr-xr-x 368 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
#
# A tiny utility that recursively greps through all the "real" C/C++ source
# files for a given regular expression, ignoring makefiles and other
# bits of the build infrastructure that could otherwise give noisy results.

find . '(' \
	-name "*.h" -o -name "*.c" -o \
	-name "*.hpp" -o -name "*.tcc" -o -name "*.cpp" ')' \
	-exec grep -e "$1" {} \; -print