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.
|
#!/bin/bash
|
|
|
|
set -euxo pipefail;
|
|
|
|
dir=$(dirname "$1");
|
|
date=$(date +%Y-%m-%d-%H-%M);
|
|
name=$(basename "$1");
|
|
|
|
mv "$1" "$dir/$date-$name";
|