From b89871bc840ab0a89edb8d7f00649b37e4cedd13 Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Mon, 7 Jun 2021 21:30:15 +0300 Subject: [PATCH] renamed "noteinfo" to "notewc" & changed output style --- shellnotes.sh | 4 +--- util/{noteinfo.sh => notewc.sh} | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) rename util/{noteinfo.sh => notewc.sh} (84%) diff --git a/shellnotes.sh b/shellnotes.sh index 6f23768..6fbd263 100644 --- a/shellnotes.sh +++ b/shellnotes.sh @@ -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 diff --git a/util/noteinfo.sh b/util/notewc.sh similarity index 84% rename from util/noteinfo.sh rename to util/notewc.sh index 0ac082a..5f26dae 100644 --- a/util/noteinfo.sh +++ b/util/notewc.sh @@ -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."