File: findtext

package info (click to toggle)
regina-normal 5.1-6
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 54,488 kB
  • sloc: cpp: 142,029; ansic: 19,218; xml: 9,844; objc: 7,729; perl: 1,190; python: 623; sh: 614; makefile: 34
file content (11 lines) | stat: -rwxr-xr-x 402 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/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 "*.m" -o -name "*.mm" -o \
	-name "*.hpp" -o -name "*.tcc" -o -name "*.cpp" ')' \
	-exec grep -e "$1" {} \; -print