diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-09-04 17:37:13 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-09-04 17:37:13 -0300 |
commit | a1e91d0b0bb20c10241dfa1930c83cc7bbdf126c (patch) | |
tree | cbc309e7e8e25d78ca52969e9d6b2a3bfb443865 /todo | |
parent | b41d8d910942a54f202172c3d339593daa034f20 (diff) | |
download | scripts-a1e91d0b0bb20c10241dfa1930c83cc7bbdf126c.tar.gz scripts-a1e91d0b0bb20c10241dfa1930c83cc7bbdf126c.tar.bz2 |
TODO: use 'show' instead of 'see'
Diffstat (limited to 'todo')
-rwxr-xr-x | todo | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -49,13 +49,13 @@ if [ "$OPTION" == "list" ]; then todo_find | grep -v -e "^$NAME$" | sed -e "s|^$HOME|~|" elif [ "$OPTION" == "count" ]; then todo_find | grep -v $NAME | wc -l -elif [ "$OPTION" == "see" ]; then +elif [ "$OPTION" == "show" ]; then if [ ! -z "$2" ] && [ -e "$2" ]; then grep "TODO" $2 | sed -e 's/^ *//' fi elif [ "$OPTION" == "help" ]; then echo "usage: $BASENAME [list|count]" - echo " $BASENAME see <file>" + echo " $BASENAME show <file>" else todo_list fi |