RosettaCodeData/Task/Take-notes-on-the-command-line/UNIX-Shell/take-notes-on-the-command-line-3.sh

12 lines
187 B
Bash
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
NOTES=$HOME/notes.txt
if test "x$*" = "x"
then
if test -r $NOTES
then
more $NOTES
fi
else
date >> $NOTES
echo " $*" >> $NOTES
fi