2 ms·
> I don't need bells and whistles for note taking. Me neither. notes() { if [ ! -z "$1" ]; then mkdir -m 00750 -p
by zikduruqe 4y ago
> I don't need bells and whistles for note taking.
Me neither.
notes()
{
if [ ! -z "$1" ]; then
mkdir -m 00750 -p /some_syncable_directory/notes
Now=$(date '+%B %d %Y %H:%M')
echo -en "\n$Now\t$@\n" >> /some_syncable_directory/notes/notes.txt
else
echo "${Now}"
cat /some_syncable_directory/notes/notes.txt 2>/dev/null
fi
}