Write a shell script and run it by passing an argument which can be file or directory name. The script should implement following behaviors:
Check whether the passed argument is file or directory If the passed argument is file, print following output: Total Lines: 3 Total Words: 6 Total Characters: 34 If the passed argument is directory, then iterate through the files and print total lines, words and characters of each file. If no argument is passed then print the message File or directory name is needed!