I try to replace a certain substring from the stdin with a new substring. I have to get the stdin from the pipe, after reading several files by cat. Then I want to
cat
You can use the command sed.
cat file1 file2 | sed -e 's/@path_to_file/path/to/file/' ...