shellnotes/util/quickread.sh
dmarakom6 cdc44e8c7c Make names less confusing
Logfiles to see: logs/
Loggers executables: util/exec/
Loggers source code: util/loggersrc/
Maybe I will merge exec with loggersrc in the near future, in case it's very complicated for users.
2021-06-15 13:51:22 +03:00

25 lines
No EOL
421 B
Bash

:<<'info'
shellnotes - quickread.sh
(C) Dimitris Marakomihelakis
Released under the "All rights reserved" category. See the RIGHTS.txt file
in /docs/github/ for its full text.
info
function quickread() {
if [ $# -eq 0 ]; then
echo -n "Enter note name: " && read notename
else
notename=$1
fi
cd $DEFAULT_PATH
if [ -e $notename ]; then
clear
cat $notename
else
clear
echo "No such note."
fi
cd $DIR
}