[go: up one dir, main page]

File: srch

package info (click to toggle)
dillo 0.8.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,168 kB
  • ctags: 3,987
  • sloc: ansic: 32,778; sh: 3,401; makefile: 251; perl: 17
file content (16 lines) | stat: -rwxr-xr-x 308 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# Find a token within source files ( *.[ch] )
# Enjoy!
# Jorge.-

if [ ! $# = 1 ]; then
  echo "Usage:"
  echo "   srch <token>"
else
#  find "./" -name "*.[ch]" -print -exec grep $1 {} \;
  egrep "$1" *.[ch]
  egrep "$1" IO/*.[ch]
  egrep -H "$1" ../dpi/*.[ch]
  egrep -H "$1" ../dpid/*.[ch]
fi