public static void main(String[] args) {
		String line;
		if (args.length <= 1) {
			gv.println("no regexp");
			System.exit(1);
		}
		gv.println("Grep:搜索 " + args[0] + " 文件 " + args[1]);
		gv.println("文件和行号\t\t  下面的行里含有所搜索的字符串");
		try {
			g = new GrepReader(new FileReader(new File(args[1])), args[0]);
			for (;;) {
				line = g.readLine();
				if (line == null) {
					break;
				}
				gv.println(args[1] + ":" + g.getLineNO() + ":\t" + line);
			}
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}