I would like to show the content of a file and also the calculated cksum of the file at once, why does the following command only output the file - but not the cksum?
sudo cat filename | tee cksum
I know that I could use sth like
f=filename; sudo cat $f; sudo cksum $f
but I would prefer to use tee or sth similar if possible.