I am creating a large tar archive and I would like to create the checksum of the archive too. I could achieve it like this:
$ tar cfz archive.tar.gz files
$ sha256sum archive.tar.gz > archive.tar.gz.sha256sum
But the archive file is huge and on slow media, so I'd prefer not to have to read it all in again after writing it out.
Can I build a pipeline that will hash the file as it writes it? I thought maybe I could do this with the tee utility, but that only writes to a file, not to the standard input of another command.
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب: can i calculate my credit score,can i calculate my social security,can i calculate my final grade,can i calculate distance on google maps,can i calculate my weight without a scale,can i calculate my paycheck after taxes,can i calculate my body fat percentage,can i calculate when i got pregnant,can i calculate my tax retu,can i calculate my own credit score,
نویسنده: استخدام کار
بازدید: 525
تاريخ: جمعه
22 مرداد
1395 ساعت: 5:11