Shell Script Directory

Write a shell script that takes a filename from user and checks whether it is directory file or not.

  • If it is a directory, then the script should display the contents of the directory.
  • If it is not a directory file, then script should display message “File is not a directory file.”




Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.