Replace fgrep and egrep with grep -F/-E

GNU Grep 3.8 reports the following warnings:

    egrep: warning: egrep is obsolescent; using grep -E
    fgrep: warning: fgrep is obsolescent; using grep -F
This commit is contained in:
Michal Nowak
2022-09-16 12:13:52 +02:00
committed by Ondřej Surý
parent 65e91ef5e6
commit 212c4de043
13 changed files with 27 additions and 27 deletions

View File

@@ -45,7 +45,7 @@ EOF
return 1
}
out=`$DIG $DIGOPTS -t $type -q $host | egrep "^$host"`
out=`$DIG $DIGOPTS -t $type -q $host | grep -E "^$host"`
lines=`echo "$out" | grep "$digout" | wc -l`
[ $lines -eq 1 ] || {
[ "$should_fail" ] || \