jpub (100B)
1 #!/usr/bin/env bash 2 3 date=$(date +"%Y-%m-%d") 4 file=$(basename "$1") 5 6 mv "$1" _posts/"$date"-"$file"