diff --git a/notes.sh b/notes.sh index f566290..40ca8e9 100755 --- a/notes.sh +++ b/notes.sh @@ -29,8 +29,9 @@ function createNote() { exit 1; fi; + file_date="$(date +'%Y.%m.%d')" file_name=$title.md - full_path="${notes_dir}/${file_name}" + full_path="${notes_dir}/${file_date}-${file_name}" # IF Not Exists: create file & echo date if ! test -f "$full_path"; then