Java framework for multicore-aware log parsing
http://www.jumperz.net/tools/mcp.jar
ant build
cat YOUR_TEXT_FILE | java -cp output/mcp.jar net.jumperz.app.MCP.MCP YOUR_CLASS_NAME ( Note that your class files must be in the classpath )
echo -e 'foo\nbar\nbaz' | java -cp output/mcp.jar net.jumperz.app.MCP.MCP UpperCase
Your class needs to implement the 'net.jumperz.io.multicore.MParser' interface like below.
public class UpperCase
implements net.jumperz.io.multicore.MParser
{
//---------------------------------------------
public String parse( String s )
{
return s.toUpperCase();
}
//---------------------------------------------
}