cat test.txt | java myfile > test1.txt 2> test2.txt
I am getting error "Ambiguous output redirect."
my java file contains System.out and System.err .
I am in Unix csh environment.
in unix tcsh env i can run as follows :
(cat test.txt | java myfile > test1.txt) >& test2.txt
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago