title: Java library for text/string processing simular to unix/linux utilities
body: <p>I'm a java programmer.  I use bash scripts a lot for text processing.</p>
  
  <p>Utilities like grep,sed,awk,tr,wc,find, along with piping between commands gives such a powerful combination.</p>
  
  <p>However bash programming lacks portability, testability and the more elegant programming constructs that exist in Java.  It also makes it harder to integrate into our other Java products.</p>
  
  <p>I was wondering if anyone knows of any Java text processing libraries out there which might offer what I'm looking for.</p>
  
  <p>It would be so cool to be able to write:</p>
  
  <pre><code>Text.createFromFile("blah.txt).grep("-v","ERROR.*").sed("s/ERROR/blah/g").awk("print $1").writeTo("output.txt")
  </code></pre>
  
  <p>This might be pie-in-in-the-sky stuff. But thought I'd put the question out there anyway.</p>