7 lines
110 B
Plaintext
7 lines
110 B
Plaintext
|
#!/bin/sh
|
||
|
now=`date '+%Y-%m-%dT%H:%M:%S'`
|
||
|
for i in "$@"
|
||
|
do
|
||
|
mv "$i" "$i.$now" && cp -p "$i.$now" "$i"
|
||
|
done
|