1"""When called with a single argument, simulated fgrep with a single 2argument and no options.""" 3 4import sys 5 6if __name__ == "__main__": 7 pattern = sys.argv[1] 8 for line in sys.stdin: 9 if pattern in line: 10 sys.stdout.write(line) 11