simple/tiny/savedate

7 lines
110 B
Plaintext
Raw Normal View History

2003-04-06 12:44:06 +02:00
#!/bin/sh
now=`date '+%Y-%m-%dT%H:%M:%S'`
for i in "$@"
do
mv "$i" "$i.$now" && cp -p "$i.$now" "$i"
done