From: Dobrica Pavlinusic Date: Mon, 24 Jan 2011 21:18:33 +0000 (+0100) Subject: fix md5sum and add date to filename X-Git-Url: http://git.rot13.org/?p=perl-Mifare-MAD.git;a=commitdiff_plain;h=f37be3d8c29c96967a46632d48aef8e9fb8540a3 fix md5sum and add date to filename --- diff --git a/dump-card.sh b/dump-card.sh index c183f39..69d95fd 100755 --- 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.*