Greetings to everybody. I would like to know if I can use the pipe and command tee to read from edited file and to write to him e.g. "sed '{s_A_B_}' file | tee file".

I know it doesn't work with > but I don't know anything about it with tee. Thank you for your help.
