003 File Manager
Current Path:
/usr/local/lib/python3.8/test/subprocessdata
usr
/
local
/
lib
/
python3.8
/
test
/
subprocessdata
/
📁
..
📁
__pycache__
📄
fd_status.py
(835 B)
📄
input_reader.py
(130 B)
📄
qcat.py
(159 B)
📄
qgrep.py
(253 B)
📄
sigchild_ignore.py
(757 B)
Editing: qgrep.py
"""When called with a single argument, simulated fgrep with a single argument and no options.""" import sys if __name__ == "__main__": pattern = sys.argv[1] for line in sys.stdin: if pattern in line: sys.stdout.write(line)
Upload File
Create Folder