(continued from previous pagepython find_ex py --type "df folder (read tfrom different locationpython find_ex py /folder --name " *python find_ex py / --name " * /tiger txt python find_ex py --name " */text_format txt /unix_commands/ /tiger txt grep "grepcommand is used to find the pattern in the filee in below code 'dogis search in the file 'file txtgrep "dogfile txt dog nudged cat below is the implementation of 'grepcommand using python grep_ex py import argparse import re from pathlib import path parser argparse argumentparser(description="grep command"positional argument when defined without -nargs='?is required for default-positional-arg values parser add_argument('pattern'type=strnargs= parser add_argument('location'type=strnargs='*'args parser parse_args(save arguments in args loc path(args location[ ]save location ptrn args pattern[ save pattern lines open(locreadlines()for line in linesif re compile(ptrnsearch(line)print(lineend=""the output of 'grepcommand are shown belowgrep "nudfile txt dog nudged cat python grep_ex py "nudfile txt dog nudged cat grep