From 3ba56d9e01ffd10bd7aedbf12acf7abb613a768b Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Mon, 5 Jul 2021 10:51:56 +0300 Subject: [PATCH] Bigger output --- util/notegrep.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/util/notegrep.sh b/util/notegrep.sh index 2b639a9..7db56a6 100644 --- a/util/notegrep.sh +++ b/util/notegrep.sh @@ -138,12 +138,11 @@ function notegrep() { ;; -m | --multiple ) cd ~ - if [ "$(python3 ~/.shellnotes/util/notegrep/m.py $regex $notename | wc -l)" -ge 20 ]; then + if [ "$(python3 ~/.shellnotes/util/notegrep/m.py $regex $notename | wc -l)" -ge 25 ]; then python3 ~/.shellnotes/util/notegrep/m.py $regex $notename | less -R else python3 ~/.shellnotes/util/notegrep/m.py $regex $notename fi - cd $DIR ;; *) @@ -161,7 +160,7 @@ function notegrep() { echo -n "Enter note name: " && read notename do_grep else - if [ $# -eq 3 ]; then + if [ $# -ge 3 ]; then export option=$1 export regex=$2 export notename=$3