diff options
Diffstat (limited to 'bin/grepc')
-rwxr-xr-x | bin/grepc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -10,6 +10,7 @@ h='-H'; i=''; k='no'; l=''; +n=''; t='no'; t_e='no'; t_fp='no'; @@ -43,7 +44,7 @@ grepc_err() grepc_parse_cmd() { - while getopts "A:B:C:chiklt:" opt; do + while getopts "A:B:C:chiklnt:" opt; do case "$opt" in A) A="-A$OPTARG"; @@ -70,6 +71,9 @@ grepc_parse_cmd() l='-l'; k='yes'; ;; + n) + n='-n'; + ;; t) case "$OPTARG" in e) @@ -254,7 +258,7 @@ grepc_search() opts="$opts $i"; opts="$opts $l"; opts="$opts -M"; - opts="$opts -n"; + opts="$opts $n"; if test -z "$files"; then pcre2grep $opts -f "$patterns"; |