# If no name or notebook is specified, the create, edit, and print functions will not function properly. # Check $NAME and $NOTEBOOK and exit if either are empty. if [ -z "$NAME" -o -z "$NOTEBOOK" ]; then; echo " ERROR: Insufficient arguments"; help; #Remind the user how to use the script exit 10; fi NOTEDIR=$BASEDIR/$NOTEBOOK/$SECTION/ NOTE=$NOTEDIR$NAME.$EXT if [ "$ENCRYPTION" == "TRUE" ]; then NOTE=$NOTE.tmp fi