view bin/ff @ 164:00b14a35280e

work-path bin dir
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 18 Jul 2022 18:30:56 +0100
parents ecdbaa11b88e
children
line wrap: on
line source

#!/bin/sh
# find any match from here
if [ "$1" = "-y" ]
then
 shift
 yy=
else
 yy="-not ( -path ./Yesterday -prune )"
fi
ff=$1
shift
find . $yy \( \( -iname \*$ff\* \) -o \( -iname .\*$ff\* \) \) "$@" -print