Edward Ned Harvey wrote: >> I use the excellent pbzip2 >> >> zfs send ... | tee >(md5sum) | pbzip2 | ssh remote ... >> >> Utilizes those 8 cores quite well :) >> > > This (pbzip2) sounds promising, and it must be better than what I wrote. > ;-) But I don't understand the syntax you've got above, using tee, > redirecting to something in parens. I haven't been able to do this yet on > my own system. Can you please give me an example to simultaneously generate > md5sum and gzip? > > This is how I currently do it: > cat somefile | multipipe "md5sum > somefile.md5sum" "gzip > somefile.gz" > End result is: > somefile > somefile.md5sum > somefile.gz > So that would be
cat somefile | tee >(md5sum > somefile.md5sum) | gzip > somefile.gz _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss