Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to run this Runtime.getRuntime().exec("cat finename grep ,000 wc -l"

843798Apr 18 2007 — edited Apr 18 2007
Hi,
I dont know how to run this ,

To get number of line in Linux , we put as
Cat file.txt | grep ,000 | wc -l

I have to put in

Runtime.getRuntime().exec(" Cat file.txt | grep ,000 | wc -l ");
but null is returning in
how to give this

Thanks,
Kamal.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2007
Added on Apr 18 2007
1 comment
310 views