switch egrep to grep -E.

egrep is deprecated.
This commit is contained in:
Rosen Penev 2018-03-26 20:36:20 -07:00
parent d99100ae32
commit a7ecf25974

View File

@ -798,7 +798,7 @@ _sed_i() {
}
_egrep_o() {
if ! egrep -o "$1" 2>/dev/null; then
if ! grep -E -o "$1" 2>/dev/null; then
sed -n 's/.*\('"$1"'\).*/\1/p'
fi
}