Commit a51025fe authored by neil's avatar neil
Browse files
parent c42ed9c6
...@@ -924,7 +924,9 @@ _sed_i() { ...@@ -924,7 +924,9 @@ _sed_i() {
} }
_egrep_o() { _egrep_o() {
if ! egrep -o "$1" 2>/dev/null; then if _exists egrep; then
egrep -o "$1" 2>/dev/null;
else
sed -n 's/.*\('"$1"'\).*/\1/p' sed -n 's/.*\('"$1"'\).*/\1/p'
fi 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