head	1.12;
access;
symbols;
locks; strict;
comment	@# @;


1.12
date	2011.11.21.10.23.59;	author dunc;	state Exp;
branches;
next	1.11;

1.11
date	2003.11.05.12.20.20;	author dunc;	state Exp;
branches;
next	1.10;

1.10
date	2003.03.03.01.12.13;	author dunc;	state Exp;
branches;
next	1.9;

1.9
date	2003.01.14.21.58.02;	author dunc;	state Exp;
branches;
next	1.8;

1.8
date	2002.04.30.22.13.57;	author dunc;	state Exp;
branches;
next	1.7;

1.7
date	99.08.08.03.31.15;	author dunc;	state Exp;
branches;
next	1.6;

1.6
date	98.08.15.07.34.28;	author dunc;	state Exp;
branches;
next	1.5;

1.5
date	98.06.17.01.36.34;	author dunc;	state Exp;
branches;
next	1.4;

1.4
date	98.05.27.03.52.36;	author dunc;	state Exp;
branches;
next	1.3;

1.3
date	98.05.25.02.40.00;	author dunc;	state Exp;
branches;
next	1.2;

1.2
date	98.04.10.06.32.54;	author dunc;	state Exp;
branches;
next	1.1;

1.1
date	98.02.02.08.05.59;	author dunc;	state Exp;
branches;
next	;


desc
@@


1.12
log
@grave elimination
@
text
@#!/bin/sh
j=$(basename $0)
case $j in
fl)
  i=""
  ;;
flc)
  i=i
  ;;
*)
  echo bad symlink of fl to $j
  exit 1
  ;;
esac
if [ -z "$1" ];then
  echo "Usage: $j <string> [<grep option>,...]" >&2
  exit 1
else
  k="$1"
  shift
fi
grep -${i}swn "$@@" -- $k \
  *.c \
  *.cpp \
  *.cxx \
  *.cc \
  Makefile \
  make-file \
  *.f \
  *.for \
  *.S \
  *.h \
  *.java \
  *.terse \
  *.tcl \
  *.expect \
  *.pl \
  *.i \
  *.l \
  *.y \
  *.sh
@


1.11
log
@One entry / line
@
text
@d2 1
a2 1
j=`basename $0`
@


1.10
log
@Allow appending of grep options
@
text
@d22 20
a41 2
grep -${i}swn "$@@" -- $k *.c *.cpp *.cxx *.cc Makefile *.f *.for *.S *.h *.java *.terse *.tcl \
  *.expect *.pl *.i *.l *.y *.sh
@


1.9
log
@Added suffices .i .l .y .sh
@
text
@d15 8
a22 1
grep -${i}swn -- $1 *.c *.cpp *.cxx *.cc Makefile *.f *.for *.S *.h *.java *.terse *.tcl \
@


1.8
log
@Look in .cc files & Makefile
@
text
@d16 1
a16 1
  *.expect *.pl
@


1.7
log
@Guard against filenames starting "-"
@
text
@d15 1
a15 1
grep -${i}swn -- $1 *.c *.cpp *.cxx *.f *.for *.S *.h *.java *.terse *.tcl \
@


1.6
log
@Also search Perl sources
@
text
@d15 1
a15 1
grep -${i}swn $1 *.c *.cpp *.cxx *.f *.for *.S *.h *.java *.terse *.tcl \
@


1.5
log
@Also search ".expect" scripts
@
text
@d15 2
a16 1
grep -${i}swn $1 *.c *.cpp *.cxx *.f *.for *.S *.h *.java *.terse *.tcl *.expect
@


1.4
log
@Recognise Fortran suffix ".for"
@
text
@d15 1
a15 1
grep -${i}swn $1 *.c *.cpp *.cxx *.f *.for *.S *.h *.java *.terse *.tcl
@


1.3
log
@Also look in FORTRAN sources
@
text
@d15 1
a15 1
grep -${i}swn $1 *.c *.cpp *.cxx *.f *.S *.h *.java *.terse *.tcl
@


1.2
log
@Does flc as well as fl
@
text
@d15 1
a15 1
grep -${i}swn $1 *.c *.cpp *.cxx *.S *.h *.java *.terse *.tcl
@


1.1
log
@Initial revision
@
text
@d2 14
a15 1
grep -swn $1 *.c *.cpp *.cxx *.S *.h *.java *.terse *.tcl
@
