notes(){
if [ ! -z "$1" ]; then
echo "[" $(date +"%Y%m%d %H:%M:%S"@$(hostname)"]" "@" >> "$HOME/notes.md";
else
if [ ! -f "$HOME/notes.md" ]; then
echo "No notes!";
#touch "$HOME/notes.md";
exit 0;
else
cat - >> "$HOME/notes.md";
# or cat "$HOME/notes.md"; for show all notes :P
fi
fi
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Discussion on: Simple note taking from the command line
For further actions, you may consider blocking this person and/or reporting abuse