Moves binaries for use with gnu stow
This commit is contained in:
parent
f528ba793c
commit
4fd9f4809b
89 changed files with 0 additions and 0 deletions
29
bin/.bin/search/searchcss
Executable file
29
bin/.bin/search/searchcss
Executable 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 .
|
Loading…
Add table
Add a link
Reference in a new issue