From 710ad77ae0e9eb4d133ecf5f3dd1251a8a7969c0 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Mon, 18 Apr 2011 22:00:23 +0200 Subject: [PATCH] a basic notes list --- bin/notes | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/notes b/bin/notes index 1ac0a31..b4c0a52 100755 --- a/bin/notes +++ b/bin/notes @@ -5,6 +5,7 @@ # # new -> create a new note for Today # edit -> edit the note of Today +# todo -> list todos [] # # Ugly notes script made by Alexandre Dulaunoy # and released under the GNU General Public License @@ -59,13 +60,17 @@ then elif [ "${ACTION}" == "edit" ] then vim ${TODAYPATH}/$( date +%d) - elif [ "${ACTION}" == "todo" ] then cd ${NOTESPATH} find . -type f | grep -v "/\." | xargs -d"\n" grep "\[\]" +elif [ "${ACTION}" == "list" ] +then + cd ${NOTESPATH} + find . -type f | grep -v "/\." | xargs -d"\n" wc -m | grep -v "total" else echo "unknown action" + echo "available action : [new|edit|todo]" exit 1 fi