cat in this sectionwe will implement the command 'catof unix we will write code to read the name of the files from the command line first create few files 'file txtand 'file txtetc and add some contents to it now read these files as shown belowwhich emulates the functionality of 'unix' cat command'listing read files from command line cat py import argparse parser argparse argumentparser(description="first argparse code" read arguments parser add_argumentnargs='+'read multiple values in list dest='files'name of the attribute returned by argparse help='unix "catoperation' line number parser add_argument'- ''--numbers'default 'dest=numbersaction='store_true'help='print line numbers' args parser parse_args(save arguments in args print( "args{args files}"print argument read by 'dest=filesprint( "first element{args files[ ]}"print first element of arg files open and read each files line_no for file_name in args fileswith open(file_name' 'as wif args numbersprint data with line numbers for data in readlines()start from line_no + print("{ : }\ { }format(line_nodata)end=''elseprint data without line numbers data read(print(databelow are the outputs of above codeactual 'catcommand output cat file txt file txt - this is cat cat is pet this is cat cat is pet this is cat cat is pet dog nudged cat duck is sleeping python code output python cat py file txt file txt - this is cat cat is pet this is cat cat is pet this is cat cat is pet (continues on next page cat