From fdcde1fb78493ebc4402af99b39f09fac6e6009a Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Thu, 15 Sep 2022 23:32:53 -0700 Subject: [PATCH] MINOR: replace deprecated egrep in kafka-run-class (#12649) The egrep is deprecated in 2007 and be replaced with grep -E Signed-off-by: Matthew Stidham Reviewers: Luke Chen --- bin/kafka-run-class.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/kafka-run-class.sh b/bin/kafka-run-class.sh index a9096ea0216..6d8c38f9b17 100755 --- a/bin/kafka-run-class.sh +++ b/bin/kafka-run-class.sh @@ -38,7 +38,7 @@ should_include_file() { return 0 fi file=$1 - if [ -z "$(echo "$file" | egrep "$regex")" ] ; then + if [ -z "$(echo "$file" | grep -E "$regex")" ] ; then return 0 else return 1