Added savedate

This commit is contained in:
hjp 2003-04-06 10:44:06 +00:00
parent 30ecd2ef1b
commit 7227f9bb20
2 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,7 @@ install: \
$(BINDIR)/isodate \
$(BINDIR)/psg \
$(BINDIR)/save \
$(BINDIR)/savedate \
fnp: fnp.sh
fnpa: fnpa.sh

6
tiny/savedate Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
now=`date '+%Y-%m-%dT%H:%M:%S'`
for i in "$@"
do
mv "$i" "$i.$now" && cp -p "$i.$now" "$i"
done