Moves binaries for use with gnu stow

This commit is contained in:
Jonathan Hodgson 2019-07-30 14:06:10 +01:00
parent f528ba793c
commit 4fd9f4809b
89 changed files with 0 additions and 0 deletions

29
bin/.bin/search/searchhtml Executable file
View file

@ -0,0 +1,29 @@
#!/usr/bin/env bash
after=0
before=0
search=''
if [ $# == 0 ]; then
echo "Usage: $0 [-A <after>] [-B <before>] query"
exit 1
fi
while [ $# != 0 ]; do
case "$1" in
-A)
after="$2"
shift
shift
;;
-B)
before="$2"
shift
shift
;;
*)
search="$search $1"
shift
;;
esac
done
grep -r -i -n --color="always" --include=\*.{html,htm} -A "$after" -B "$before" "$search" .