fix md5sum and add date to filename
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 24 Jan 2011 21:18:33 +0000 (22:18 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 24 Jan 2011 21:18:33 +0000 (22:18 +0100)
dump-card.sh

index c183f39..69d95fd 100755 (executable)
@@ -12,7 +12,8 @@ fi
 
 mfoc -O $uid.mfd | tee $uid.log
 
 
 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.*
 ls -al $uid.*