1 2 3 4 5 6
#!/bin/sh # mndream [ -z $1 ] && DT="yesterday" || DT="$1" mkdir -p "$HOME/docs/wr/dream" wr "dream/D$(date --iso-8601 -d $DT).txt"