Write a script named line_numbers.sh that will accept zero or more filename argu


Write a script named line_numbers.sh that will accept zero or more filename arguments.  Thescript will add line numbers to a copy of the input content.  If no arguments are provided, read from the stdin(like a filter).  Display the numbered results (line number, period, space, line content) to the screen.  Do notmodify the original files.  Only display each filename before the numbered output if multiple filenames areprovided.  The numbering should reset to 1 for each file (when multiple files are provided as input).  Printappropriate error messages (stderr) and exit with a non-zero value if any of the arguments are not files or notreadable.  Test your script with 0, 1, and 2 filename arguments.  For testing zero arguments, use the script likea filter.  Test your error checking by providing a directory argument and a non-readable file argument (asshown below). ***** see attached image