File: nmgrep

package info (click to toggle)
eso-midas 23.02pl1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 146,968 kB
  • sloc: ansic: 360,674; makefile: 6,231; sh: 6,003; pascal: 535; perl: 40; awk: 36; sed: 14
file content (14 lines) | stat: -rwxr-xr-x 261 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# @(#)nmgrep.sh	19.1 (ESO-IPG) 02/25/03 14:32:00
pattern=$1
shift
for i in $*
do
  	# -h option not always recongnized (Sony/News)
	if (test -h $i 2>/dev/null); then
	   ls -l $i
	   continue
        fi
	echo "FILE: $i"
	nm $i | grep -i $pattern
done