#!/bin/bash ts=$(date +"%Y-%m-%d-%H%M%S") file=./notes/$ts.md touch $file echo -e "# $ts\n" > $file echo "$file:end" code --goto "$file:2"