Bigger output
This commit is contained in:
parent
c1e9163a4a
commit
3ba56d9e01
1 changed files with 2 additions and 3 deletions
|
@ -138,12 +138,11 @@ function notegrep() {
|
||||||
;;
|
;;
|
||||||
-m | --multiple )
|
-m | --multiple )
|
||||||
cd ~
|
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
|
python3 ~/.shellnotes/util/notegrep/m.py $regex $notename | less -R
|
||||||
else
|
else
|
||||||
python3 ~/.shellnotes/util/notegrep/m.py $regex $notename
|
python3 ~/.shellnotes/util/notegrep/m.py $regex $notename
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $DIR
|
cd $DIR
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -161,7 +160,7 @@ function notegrep() {
|
||||||
echo -n "Enter note name: " && read notename
|
echo -n "Enter note name: " && read notename
|
||||||
do_grep
|
do_grep
|
||||||
else
|
else
|
||||||
if [ $# -eq 3 ]; then
|
if [ $# -ge 3 ]; then
|
||||||
export option=$1
|
export option=$1
|
||||||
export regex=$2
|
export regex=$2
|
||||||
export notename=$3
|
export notename=$3
|
||||||
|
|
Loading…
Reference in a new issue