how redirect output to sed¶ If you want to redirect the out of command, run the following command, which will send everything to sed ./script |& sed