Commit c3d7f2f1 authored by Lorenz Stechauner's avatar Lorenz Stechauner
Browse files

World4You removed _ggrep

parent faf6c167
...@@ -183,16 +183,6 @@ _get_paketnr() { ...@@ -183,16 +183,6 @@ _get_paketnr() {
TLD="$domain" TLD="$domain"
RECORD=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#TLD} - 1))") RECORD=$(echo "$fqdn" | cut -c"1-$((${#fqdn} - ${#TLD} - 1))")
PAKETNR=$(echo "$form" | _ggrep -B 3 "^\\s*$domain\$" | head -n 1 | sed 's/^.*>\([0-9][0-9]*\).*$/\1/') PAKETNR=$(echo "$form" | _egrep_o "data-textfilter=\" $domain .* [0-9]*" | head -n 1 | _egrep_o "[0-9]*")
return 0 return 0
} }
_ggrep() {
if _exists "ggrep"; then
ggrep "$@"
return $?
else
grep "$@"
return $?
fi
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment