quickread: use less

This commit is contained in:
dmarakom6 2021-07-05 11:58:11 +03:00
parent c9827f2dcd
commit 51f11ba994

View file

@ -14,7 +14,12 @@ function quickread() {
cd $DEFAULT_PATH
if [ -e $notename ]; then
clear
cat $notename
if [ "$(cat $notename | wc -l)" -ge 25 ];then
cat $notename | less
else
cat $notename
fi
else
clear