diff options
-rwxr-xr-x | bin/grepc | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -2,7 +2,6 @@ # Defaults: -file='/dev/stdin'; iflag=''; lflag=''; kflag='no'; @@ -238,8 +237,7 @@ main() { grepc_parse_cmd "$@" </dev/null; - <"$file" \ - pcre2grep -${iflag}${lflag}HMn --label="$file" -f <(grepc_patterns "$identifier") \ + pcre2grep -${iflag}${lflag}HMn -f <(grepc_patterns "$identifier") $file \ | sed -E -f <(test "$kflag" = 'no' && echo 's/^[^: ]+:[0-9]+:/\n\n&\n/') \ | perl -pe "$(test "$cflag" = 'yes' && echo 's/('"$identifier"')/\033[32m\1\033[0m/' || echo 's///')" \ | if [ -n "$lflag" ]; then |