xargs grep -${iflag}lP -- "$1" \
| xargs grep -${iflag}lP -- "$2" \
| sort \
- | xargs pcregrep -${iflag}${lflag}Mn -- "$3" /dev/null \
+ | xargs pcre2grep -${iflag}${lflag}Mn -- "$3" /dev/null \
| if [ "$kflag" = 'no' ]; then
sed -E 's/^[^: ]+:[0-9]+:/\n\n&\n/';
else
xargs grep -${iflag}lP -- "$1" \
| xargs grep -${iflag}lP -- "$2" \
| sort \
- | xargs pcregrep -${iflag}${lflag}Mn -- "$3" /dev/null \
+ | xargs pcre2grep -${iflag}${lflag}Mn -- "$3" /dev/null \
| if [ "$kflag" = 'no' ]; then
sed -E 's/^[^: ]+:[0-9]+:/\n\n&\n/';
else