‐‐‐ Original Message ‐‐‐
On Wednesday, December 18, 2019 4:41 PM, Andy Pieters
wrote:
> On Wed, 18 Dec 2019 at 15:32, Pascal via arch-general
> arch-general@archlinux.org wrote:
>
> > that's awesome, it works !
> > it was so simple with cat taking over and consuming the data until the en
On Wed, 18 Dec 2019 at 15:32, Pascal via arch-general
wrote:
>
> that's awesome, it works !
> it was so simple with cat taking over and consuming the data until the end !
> (I added a redirect to /dev/null to cat)
> big thank you.
I'm interested in the amount of effort you put into this. Isn't th
that's awesome, it works !
it was so simple with cat taking over and consuming the data until the end !
(I added a redirect to /dev/null to cat)
big thank you.
Le mer. 18 déc. 2019 à 16:19, mar77i via arch-general <
arch-general@archlinux.org> a écrit :
> ‐‐‐ Original Message ‐‐‐
> On Wed
‐‐‐ Original Message ‐‐‐
On Wednesday, December 18, 2019 3:20 PM, Pascal via arch-general
wrote:
> hello,
>
> it works perfectly because both tools used, md5sum and sha1sum, consume all
> the data.
>
> on the other hand, the function returns wrong fingerprints if I insert a
> tool like f
hello,
to avoid having to read twice the entire large file, I use the tee tool in
this way to calculate two checksums "simultaneously" :
file_info(){
echo -n ${1:=/dev/stdin}$'\t'
(
tee < "${1}" \
>( md5sum >&3 ) \
>( sha1sum >&3 ) \
>/dev/null
5 matches
Mail list logo