RosettaCodeData/Task/Take-notes-on-the-command-line/UNIX-Shell/take-notes-on-the-command-line-3.sh
Ingy döt Net 68f8f3e56b all tasks
2013-04-11 01:07:29 -07:00

11 lines
187 B
Bash

NOTES=$HOME/notes.txt
if test "x$*" = "x"
then
if test -r $NOTES
then
more $NOTES
fi
else
date >> $NOTES
echo " $*" >> $NOTES
fi