On 10/05/19 07:58, Ole Tange wrote:
> Fra: Pádraig Brady <[email protected]> 
> 
>> In the general case write access would probably be required, like with sort 
>> above.
> 
> Doing similar to `sort` seems like wise approach: In memory if short. On 
> $TMPDIR if big.
> 
> I did not know about BSD's signify. The 'ftp url | ...' is the primary use 
> case I would use it for. Another would be to read an old (maybe corrupted) 
> backup that I had checksums of.

Note if you didn't mind the data getting through,
and only wanted to verify after, one could check
in parallel with something like:

  ftp url |
  tee >(sha256sum --status -c <(echo "$chksum  -") && touch chksum.ok) |
  tar -xf - && rm chksum.ok

cheers,
Pádraig

Reply via email to