~ubuntu-branches/debian/sid/eso-midas/sid

« back to all changes in this revision

Viewing changes to .pc/fix_shellscripts.patch/system/unix/nmgrep

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-sl34juxohmn4aty4
Tags: 13.09pl1.2+dfsg-1
Initial release. (Closes: #740702)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
:
 
2
# @(#)nmgrep.sh 19.1 (ESO-IPG) 02/25/03 14:32:00
 
3
pattern=$1
 
4
shift
 
5
for i in $*
 
6
do
 
7
        # -h option not always recongnized (Sony/News)
 
8
        if (test -h $i 2>/dev/null); then
 
9
           ls -l $i
 
10
           continue
 
11
        fi
 
12
        echo "FILE: $i"
 
13
        nm $i | grep -i $pattern
 
14
done