How do I get sed to read from standard input? [duplicate] December 24, 2022 by Tarik use the –expression option grep searchterm myfile.csv | sed --expression='s/replaceme/withthis/g'