Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Bash snippet - Calculate md5 sum recursively and sort by name.
SUBMITTED BY:
DanielK
DATE:
Aug. 13, 2016, 3:03 p.m.
FORMAT:
Bash
SIZE:
177 Bytes
Raw
Download
Tweet
HITS:
846
Go to comments
Report
function
md5it
()
{
if
[
$#
-gt
0
]
;
then
find
-path
"*
${
1
}
*"
-type
f
-print0
2
>
/dev/null
|
sort
-z
|
xargs
-0
md5sum
-b
else
echo
"
${
FUNCNAME
}
<path>"
fi
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus