Skip to content

Commit

Permalink
replaced egrep with grep -E
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed Apr 16, 2023
1 parent bd1c247 commit dfc0dc7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions catChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ do
flag=2
continue
fi
echo $line | egrep "^o " > /dev/null
echo $line | grep -E "^o " > /dev/null
if [ $? -eq 0 ] ; then
bullet=1
else
bullet=0
fi
echo "$line" |egrep "^[0-9]|^[0-9][0-9]|^[0-9][0-9][0-9]" > /dev/null
echo "$line" |grep -E "^[0-9]|^[0-9][0-9]|^[0-9][0-9][0-9]" > /dev/null
if [ $? -eq 0 ] ; then
if [ $option -eq 2 -a $nonewline -eq 1 ] ; then
echo
Expand Down
2 changes: 1 addition & 1 deletion tinydnssec-x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ BIN SBIN LIBEXEC ETC MAN
./installer $(DESTDIR)$(libexecdir) < LIBEXEC
./installer $(DESTDIR)$(sysconfdir) < ETC
./installer $(DESTDIR)$(prefix)/share/man < MAN
egrep "BIN|ETC|MAN" ETC.extra | ./installer $(DESTDIR)$(sysconfdir)
grep -E "BIN|ETC|MAN" ETC.extra | ./installer $(DESTDIR)$(sysconfdir)
grep "\-conf" SBIN.extra | ./installer $(DESTDIR)$(prefix)
[ -z $(DESTDIR) ] && ./instcheck || true

Expand Down
8 changes: 4 additions & 4 deletions tinydnssec-x/curvedns-0.88/configure.nacl
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ do
echo ""
echo "#include \"${op}.h\""
echo ""
egrep "${o}"'$|'"${o}"'\(|'"${o}"'_' < MACROS \
grep -E "${o}"'$|'"${o}"'\(|'"${o}"'_' < MACROS \
| sed "s/$o/$op/" | while read mop
do
echo "#define ${mop} ${mop}" | sed "s/$op/$o/"
Expand All @@ -217,17 +217,17 @@ do
sed 's/[ ]CRYPTO_/ '"${opi}"'_/g' < api.h
echo '#ifdef __cplusplus'
echo '#include <string>'
egrep "${o}"'$|'"${o}"'\(|'"${o}"'_' < PROTOTYPES.cpp \
grep -E "${o}"'$|'"${o}"'\(|'"${o}"'_' < PROTOTYPES.cpp \
| sed "s/$o/$opi/"
echo 'extern "C" {'
echo '#endif'
egrep "${o}"'$|'"${o}"'\(|'"${o}"'_' < PROTOTYPES.c \
grep -E "${o}"'$|'"${o}"'\(|'"${o}"'_' < PROTOTYPES.c \
| sed "s/$o/$opi/"
echo '#ifdef __cplusplus'
echo '}'
echo '#endif'
echo ""
egrep "${o}"'$|'"${o}"'\(|'"${o}"'_' < MACROS \
grep -E "${o}"'$|'"${o}"'\(|'"${o}"'_' < MACROS \
| sed "s/$o/$opi/" | while read mopi
do
echo "#define ${mopi} ${mopi}" | sed "s/$opi/$op/"
Expand Down

0 comments on commit dfc0dc7

Please sign in to comment.