You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rwxrob-dot/scripts/datepath

9 lines
223 B
Bash

#!/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 $@"