1 # check if input is a number, returns false or the number itself
2 function check_noteID
() {
16 echo " $0 [PARAMS] ..."
19 ${BASENAME} configuration is:
21 base directory: ${BASEDIR}/
22 notes archive: ${NOTESDIR}/
25 debug file: /tmp/debug_bash-note.log
27 text editor: ${EDITOR}
34 echo "${BASENAME} parameters are:"
35 echo -e " -h | --help\t\t\t: This help text"
36 echo -e " -p | --plain\t\t\t: Output is in plain text"
37 echo -e "\t\t\t\t (without this option the output is formatted)"
38 echo -e "\t\t\t\t (this option must precede all others)"
39 echo -e " -l | --list\t\t\t: List existing notes"
40 echo -e " -a | --add [\"<title>\"]\t: Add new note"
41 echo -e " -e | --edit [<note>]\t\t: Edit note"
42 echo -e " -d | --delete [<note> | all] : Delete single note or all notes at once"
43 echo -e " -s | --show [<note>]\t\t: Display note using your favourite PAGER"
44 echo -e " -v | --version\t\t: Print version"
45 echo -e " --userconf\t\t\t: Export User config file"
46 echo -e " --backup [<dest>]\t\t: Backup your data in your destination folder"