Files are simpler to handle. It results in less flags, and simpler
command invocations. And it allows breaking the line more nicely,
without having to break in the middle of a quoted region.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
fi \
| xargs pcre2grep "${opts[@]}" -f "$patterns";
fi \
-| perl -pe "$(test "$r" = 'yes' && printf '%s\n' 's/('"$identifier"')/\033[32m\1\033[0m/' || printf '%s\n' 's///')" \
+| perl -p <(
+ test "$r" = 'yes' \
+ && printf '%s\n' 's/('"$identifier"')/\033[32m\1\033[0m/' \
+ || printf '%s\n' 's///';
+) \
| if [ -n "$l" ]; then
sort \
| uniq;