Re: merge stdin, stdout?

2010-02-06 Thread jonny lowe
On Feb 5, 11:10 pm, "Gabriel Genellina" wrote: > En Fri, 05 Feb 2010 17:39:07 -0300, jonny lowe > escribió: > > > > > > > On Feb 4, 8:20 pm, exar...@twistedmatrix.com wrote: > >> On 01:56 am, jonny.lowe.12...@gmail.com wrote: > >> &

Re: merge stdin, stdout?

2010-02-05 Thread jonny lowe
On Feb 4, 8:20 pm, exar...@twistedmatrix.com wrote: > On 01:56 am, jonny.lowe.12...@gmail.com wrote: > > > > >Hi everyone, > > >Is there an easy way to mergestdinandstdout? For instance suppose I > >havescriptthat prompts for a number and prints the number. If you > >execute this with redirection f

merge stdin, stdout?

2010-02-04 Thread jonny lowe
Hi everyone, Is there an easy way to merge stdin and stdout? For instance suppose I have script that prompts for a number and prints the number. If you execute this with redirection from a file say input.txt with 42 in the file, then executing ./myscript < input.txt > output.txt the output.txt m