blob: 5c19708c78351f9e5a71fd6ef9e08fac8a62ec4f [file] [log] [blame]
gsh = new com.baulsupp.groovy.groosh.Groosh();
if (args.length == 0) {
System.err.println("please provide a search pattern");
System.err.println("usage: dict_args querystring");
} else {
gsh.cat('/usr/share/dict/words').pipeTo(gsh.grep(args[0])).toStdOut();
}