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


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

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

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

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

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


desc
@Locate filenames containing string in current dir & below
@


1.5
log
@grave elimination
@
text
@#!/bin/sh
#set -x
j=$(basename $0)
case $j in
l)
  n="-name"
  f="-noleaf"
  ;;
lc)
  n="-iname"
  f="-noleaf"
  ;;
ll)
  f="-follow"
  n="-name"
  ;;
llc)
  f="-follow"
  n="-iname"
  ;;
*)
  echo bad symlink of l to $j
  exit 1
  ;;
esac
find . -depth $f \( $n "*"$1"*" -o $n ".*"$1"*" \) -print
@


1.4
log
@finds .$1
@
text
@d3 1
a3 1
j=`basename $0`
@


1.3
log
@Also find names starting .
@
text
@d26 1
a26 1
find . -depth $f $n "*"$1"*" -o $n ".*"$1"*" -print
@


1.2
log
@Now does lc, ll & llc as well via symlinks
@
text
@d2 1
d6 2
a7 1
  i="-noleaf -name"
d10 2
a11 1
  i="-noleaf -iname"
d14 2
a15 1
  i="-follow -name"
d18 2
a19 1
  i="-follow -iname"
d26 1
a26 1
find . -depth $i "*"$1"*" -print
@


1.1
log
@Initial revision
@
text
@d2 20
a21 1
find . -noleaf -depth -name "*"$1"*" -print
@
