Added savedate
This commit is contained in:
parent
30ecd2ef1b
commit
7227f9bb20
|
@ -16,6 +16,7 @@ install: \
|
|||
$(BINDIR)/isodate \
|
||||
$(BINDIR)/psg \
|
||||
$(BINDIR)/save \
|
||||
$(BINDIR)/savedate \
|
||||
|
||||
fnp: fnp.sh
|
||||
fnpa: fnpa.sh
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue