Add filterCggetOutput method in Shell.java