renamed "noteinfo" to "notewc" & changed output style

This commit is contained in:
dmarakom6 2021-06-07 21:30:15 +03:00
parent 5e7c6a3568
commit b89871bc84
2 changed files with 4 additions and 6 deletions

View file

@ -1,5 +1,3 @@
#The first line is the user's default shell found during installation process.
#Warning! If you don't have gedit(text editor) or nano installed, you may have to change the default text editor (lines 10, 25, 40).
#The lines below must NOT be changed.
@ -18,7 +16,7 @@ DIR="$(pwd)"
. ~/.shellnotes/util/findnote.sh
. ~/.shellnotes/util/findmisplacednote.sh
. ~/.shellnotes/util/renamenote.sh
. ~/.shellnotes/util/noteinfo.sh
. ~/.shellnotes/util/notewc.sh
. ~/.shellnotes/util/notegrep.sh

View file

@ -1,11 +1,11 @@
:<<'info'
shellnotes - noteinfo.sh
shellnotes - notewc.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 noteinfo() {
function notewc() {
if [ $# -eq 0 ]; then
echo -n "Enter note name: " && read notename
else
@ -18,7 +18,7 @@ function noteinfo() {
else
cd $DEFAULT_PATH
if [ -e $notename ]; then
wc $notename
echo -n "wc output: " && wc $notename
echo "(lines/words/chars/name)"
else
echo "That note doesn't exist."