- #!/bin/bash
-
- # Output a vimwiki log page template for the current time
-
- # (See fragment-vimwiki-diary for an approach to using filename as a date
- # input.)
-
- datestamp="$(date --rfc-3339=ns)"
- printf '%%date %s\n%%title\n\n' "$datestamp"
-
- # If we have input, drop it into the template:
- if [ ! -z "$1" ]; then
- printf "%s" "$1"
- fi
|