adding echo stdin to sed command