Sed replace in file replaced to pipe to file