view bin/ff @ 155:58b90cd52c15

for 2022 exercise
author Henry Thompson <ht@markup.co.uk>
date Fri, 01 Jul 2022 17:50:06 +0200
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