Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Bash snippet - Convert rar crc32 to sfv
SUBMITTED BY:
DanielK
DATE:
Aug. 13, 2016, 2:28 p.m.
FORMAT:
Bash
SIZE:
300 Bytes
Raw
Download
Tweet
HITS:
604
Go to comments
Report
function
rar_crc32_to_sfv
()
{
if
[
$#
-gt
0
]
;
then
{
unrar
vt
"
$1
"
|
sed
-n
'1,9{/.*/d};0~3d;{N;s/^\s*\(.\+\)\n\s\+[[:digit:]]\+\s\+[[:digit:]]\+\s\([[:digit:]]\+%\|<--\)\s.\{8\}\s[[:digit:]]\+:[[:digit:]]\+.\{12\}\(.\{8\}\).*$/\1 \3/p}'
}
else
echo
"
${
FUNCNAME
}
<source>"
fi
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus