diff options
author | Marvin Borner | 2023-07-06 22:03:08 +0200 |
---|---|---|
committer | Marvin Borner | 2023-07-06 22:31:46 +0200 |
commit | 6afe0a6961a959454d08f89fcfbb8a545902aa17 (patch) | |
tree | cdd4abe3b22addd31e2cd1b2fa727824267c1d30 /new |
Initial commit
Diffstat (limited to 'new')
-rwxr-xr-x | new | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,11 @@ +#!/bin/sh + +export DATE=$(date '+%Y-%m-%d') + +name=$(date '+%Y-%m-%d-%H') +cp -i template.md md/"$name".md + +envsubst <md/"$name".md >md/tmp +mv md/tmp md/"$name".md + +echo md/"$name".md |