Mercurial > hg > ishara
view general/fileutils/md5file.m @ 4:e44f49929e56
Adding reorganised general toolbox, now in several subdirectories.
author | samer |
---|---|
date | Sat, 12 Jan 2013 19:21:22 +0000 |
parents | |
children | 47cb292350f3 |
line wrap: on
line source
function hash=md5file(fn) [rc,result]=system(sprintf('md5sum -b "%s"',fn)); if rc==0 sp=find(result==' '); hash=result(1:sp); else error('Error running md5sum'); end end