Mercurial > hg > cc > cirrus_home
comparison bin/ff @ 67:ecdbaa11b88e
misc
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Fri, 24 Apr 2020 20:03:29 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 66:a8bb3b4c208f | 67:ecdbaa11b88e |
|---|---|
| 1 #!/bin/sh | |
| 2 # find any match from here | |
| 3 if [ "$1" = "-y" ] | |
| 4 then | |
| 5 shift | |
| 6 yy= | |
| 7 else | |
| 8 yy="-not ( -path ./Yesterday -prune )" | |
| 9 fi | |
| 10 ff=$1 | |
| 11 shift | |
| 12 find . $yy \( \( -iname \*$ff\* \) -o \( -iname .\*$ff\* \) \) "$@" -print |
