Question: 1 . Your script will then solve each of these pathname expansion exercises. You need to use the variable in all paths. a . List

1.Your script will then solve each of these pathname expansion exercises. You need to use the variable in all paths.
a.List the contents of the ~/Documents/cis190 directory that start with "lab" and end in anything else
b.List the contents of the ~/Documents/cis190 directory that start with "lab" and end in ".txt"
c.List the contents of the ~/Documents/cis190 directory that start with "lab" and have the next character of 1,2 or 3 and end in anything else
d.List the contents of the ~/Documents/cis190 directory that start with "lab" and have the next character of 1,2 or 3 and end in ".txt"
e.List the contents of any directory inside your home that has the first 2 letters "Do" and end in anything else but are directories not files. You are listing the contents of the Do directories. Files that are inside of those directories are fine to list. This should still use your variable for the path but will need to add some relative pathname elements to the path to get to the right directory. Also note that you should not use and ls options to get the directories, it is possible to use just pathname expansion to get what you want here.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!