Question 5: Regular expressions [9]

In either bash or perl, write a script that takes a filename (which might include a path) as a command line argument and accurately classifies it as one of the following: The script does not need to test the existence of the file or validity of the path, it simply needs to classify it.