annotate bin/ff @ 121:863ea87be6bb

support field edit
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 28 Jun 2021 15:40:10 +0000
parents ecdbaa11b88e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
67
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/bin/sh
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 # find any match from here
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 if [ "$1" = "-y" ]
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 then
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 shift
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 yy=
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 else
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
8 yy="-not ( -path ./Yesterday -prune )"
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
9 fi
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
10 ff=$1
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
11 shift
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
12 find . $yy \( \( -iname \*$ff\* \) -o \( -iname .\*$ff\* \) \) "$@" -print