The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is
tee
tr
sort
grep