rwxrob-dot/scripts/datepath

9 lines
223 B
Plaintext
Raw Normal View History

2022-02-09 07:29:05 +00:00
#!/bin/sh
# Prints the current date as a path for use when creating content within
# a directory file structure that models chronological data. Accepts
# anything that can be passed to `date -d`.
date +%4Y/%m/%d "-d $@"