head	1.2;
access;
symbols;
locks;
comment	@# @;


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

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


desc
@@


1.2
log
@Cater for space and single-quote in file names
@
text
@#!/bin/sh
#set -x
# Assume gnu find in next line
n=-noleaf
if [ -z "$1" ];then
  echo "Usage: $j <string> [<grep option>,...]" >&2
  exit 1
else
  k="$1"
  shift
fi
find $f $n -depth -type f \( \
  -name "*.aw" \
  -o -name "*.as" \
  \) -print|sed -e "s/'/\\\\'/g"|sed -e 's/ /\\ /g'|xargs -n 32 -r -e grep -${i}s "$@@" -- "$k" /dev/null
@


1.1
log
@Initial revision
@
text
@d15 1
a15 1
  \) -print|xargs -n 32 -r -e grep -${i}s "$@@" -- "$k" /dev/null
@
