Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Watch video here: https://www.youtube.com/watch?v=p_F3ODBiCBw
- from sys import argv
- script, input_file, output_file, keyword = argv
- input_file = open(argv[1]).readlines()
- output_file = open(argv[2], 'w')
- for item in input_file:
- if item.find(argv[3]) != -1:
- output_file.write(item)
- output_file.close()
Add Comment
Please, Sign In to add comment