hi,
https://github.com/patatetom/hashs
and merry Christmas.
Le jeu. 19 déc. 2019 à 23:16, Pascal a écrit :
> hi Ralph,
>
> thank you for that clarification.
> the function works a little faster with them.
>
> file_info(){ echo -n ${1:=/dev/stdin}$'\t'; ( tee < "${1}" >( file
> --mime-type -b -e
hi Ralph,
thank you for that clarification.
the function works a little faster with them.
file_info(){ echo -n ${1:=/dev/stdin}$'\t'; ( tee < "${1}" >( file
--mime-type -b -e compress -e tar -e elf - >&3; cat >/dev/null ) >( md5sum
>&3 ) >( sha1sum >&3 ) >/dev/null; ) 3>&1 | tr '\n' '\t'; echo; }
Hi Pascal,
> file_info(){
> echo -n ${1:=/dev/stdin}$'\t'
> (
> tee < "${1}" \
> >( file --mime-type -b -e compress -e tar -e elf - >&3 ) \
> >( md5sum >&3 ) \
> >( sha1sum >&3 ) \
> >/dev/null
> ) 3>&1 |
> tr '\n' '\t'
>
it depends a little bit on the context in which the function will be played
:
- with an SSD disk, the playback of a large file is very fast,
- with a lot of available memory, the file is cached at its first reading
and subsequent readings are almost instantaneous.
if these two conditions are met, i
‐‐‐ 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
Hello,
with the last update of the Archlinux keyring package, I got a few errors like
the following one:
usr/bin/pacman-key: line 615: printf: write error: Broken pipe
Is this a known bug or can this be ignored?
Yours
Manuel Reimer
10 matches
Mail list logo