Wednesday, 21 August 2013

echo to standard input or stdin

echo to standard input or stdin

How can I echo to stdin?
For example, I have an alias called 'replace'. When I run 'replace' it
should echo
sed 's/~/~\\n/g'
into standard input. Notice the sed command above doesn't have a file
target. I'll supply the file target after it echos the sed command above.

No comments:

Post a Comment