view bin/ff @ 197:78d9e09e151e

withdrew non-working -m switch
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 23 Apr 2025 11:04:53 +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