#!/bin/sh -e path="${1:-.}/$(date +'%Y_%m_%d')" shift mkdir "$@" -p "$path" echo "$path"