String strCmd = "A = load 'bar';\nB = foreach A generate $0;";
ParameterSubstitutionPreprocessor psp = new ParameterSubstitutionPreprocessor(50);
BufferedReader pin = new BufferedReader(new StringReader(strCmd));
StringWriter writer = new StringWriter();
psp.genSubstitutedFile(pin, writer, null, null);
pin = new BufferedReader(new StringReader(writer.toString()));
Grunt grunt = new Grunt(pin, context);
int results[] = grunt.exec();
for (int i=0; i<results.length; i++) {