summaryrefslogtreecommitdiffstats
path: root/bin/grepc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/grepc')
-rwxr-xr-xbin/grepc8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/grepc b/bin/grepc
index f37510d..23de67d 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -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";