projects
/
perl-Mifare-MAD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfd15a6
)
fix md5sum and add date to filename
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 24 Jan 2011 21:18:33 +0000
(22:18 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 24 Jan 2011 21:18:33 +0000
(22:18 +0100)
dump-card.sh
patch
|
blob
|
history
diff --git
a/dump-card.sh
b/dump-card.sh
index
c183f39
..
69d95fd
100755
(executable)
--- a/
dump-card.sh
+++ b/
dump-card.sh
@@
-12,7
+12,8
@@
fi
mfoc -O $uid.mfd | tee $uid.log
-md5=`md5sum 32a0ee18.mfd | cut -d" " -f1`
-mv $uid.mfd $uid.$md5.mfd
-mv $uid.log $uid.$md5.log
+md5=`md5sum $uid.mfd | cut -d" " -f1 || `
+date=`date +%Y-%m-%dT%H%M%S`
+mv $uid.mfd $uid.$date.$md5.mfd
+mv $uid.log $uid.$date.$md5.log
ls -al $uid.*