2016-08-04 12:10:50 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
if [ ! -x /usr/bin/curl ]; then
|
|
|
|
|
echo No curl installed!
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$1" == "" ]; then
|
|
|
|
|
echo "Usage: $0 [search] [optional filter]"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
2017-12-04 20:07:01 -06:00
|
|
|
export bashstr="$(printf "curl -s --data 'str=%s&fstr=%s&ifun=if&ccg=all&search=Search' https://visca.com/regexdict/" "$1" "$2")"
|
2016-08-04 12:10:50 -05:00
|
|
|
bash -c "$bashstr" | egrep 'any matches|yourdictionary' | cut -f 2 -d '>' | cut -f 1 -d '<'
|
|
|
|
|
|