Chapter 7: Problem 6
Write a program find. py that searches all files specified on the command line and prints out all lines containing a specified word. For example, if you call python find.py ring report.txt address.txt honework.py then the program might print report. txt: has broken up an international ring of DVD bootleggers that address.tut: Kris Kringle, North Pole address. txt: Homer Sinpson, Springfield honework.py: string = "text" The specificd word is always the first command line argument.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.