LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to: a pipe command? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-a-pipe-command-285120/)

youngstorm 02-01-2005 07:59 PM

how to: a pipe command?
 
Hi,
im writing a program in java.
i want to compare its output with
what is in a file. i don't want to pipe
the output to a file first. im thinking this :
'java progname > diff filename'
that does not work
any ideas?
thx
Michael

Berhanie 02-01-2005 09:05 PM

Code:

java progname | diff - filename

youngstorm 02-02-2005 10:52 AM

thanks Berhanie


All times are GMT -5. The time now is 02:13 PM.