Changing from i3 to dwm - tidied ip bin folder

This commit is contained in:
Jonathan Hodgson 2019-05-17 12:52:12 +01:00
parent 6aaf779227
commit a0ef393f2b
47 changed files with 254 additions and 245 deletions

29
bin/search/searchcss 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=\*.{css,less,scss,sass} --exclude=\*.min.css -A "$after" -B "$before" "$search" .