1
0
Fork 0
postfix/auxiliary/fix-grep/fix-grep.sh
Daniel Baumann 75cf244379
Adding upstream version 3.10.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 14:19:32 +02:00

11 lines
331 B
Bash
Executable file

#!/bin/sh
# Fix grep -[EF] for systems that require the historical forms egrep
# and fgrep. Run this script in the top-level Postfix directory as
# sh auxiliary/fix-grep/fix-grep.sh
# Use only historical grep syntax.
find * -type f | xargs grep -l 'grep -[EF]' | xargs perl -pi -e '
s/grep -E/egrep/g;
s/grep -F/fgrep/g;
'