view bin/ff @ 79:4b8e4e3d60eb

track redirects, need to us full crawldiagnostics.warc.gz for "location:" and "Uri:"
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 07 May 2020 18:47:24 +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