selftests: powerpc: Use "grep -E" instead of "egrep"
authorTiezhu Yang <yangtiezhu@loongson.cn>
Thu, 1 Dec 2022 02:49:57 +0000 (10:49 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 07:04:27 +0000 (18:04 +1100)
commit5921eb36d2a1b276b16a24e529788550e6a65449
tree9abf8512f35222f7f0817447a18c5e997879ff1b
parent6b34a099faa123488b13caf704562f4dbe483fc4
selftests: powerpc: Use "grep -E" instead of "egrep"

The latest version of grep claims the egrep is now obsolete so the build
now contains warnings that look like:
egrep: warning: egrep is obsolescent; using grep -E
fix this using "grep -E" instead.

  sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/testing/selftests/powerpc`

Here are the steps to install the latest grep:

  wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz
  tar xf grep-3.8.tar.gz
  cd grep-3.8 && ./configure && make
  sudo make install
  export PATH=/usr/local/bin:$PATH

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1669862997-31335-1-git-send-email-yangtiezhu@loongson.cn
tools/testing/selftests/powerpc/scripts/hmi.sh