In article <1673c1fd.0307291148.7fd25c2eposting.google.com >,
John <johnwuyorku.ca> wrote:
>I know this is a common question, but I didn't know how to search and
>get its answer, say if the following command end up with lots lines of
>javac find error:file.java error 1111
>how to let it just displaying the first 10 lines of error, something
>more a_file | head -10 #or
>cat a_file | grep "myError"
javac file.java 2>&1 | head -10
2>&1 means to redirect stderr to where stdout goes, and then you can use
the familiar ...