Question: Using Unix: Create a script called dirfiles2.sh Script will display indicate which files are directories vs regular files in the /etc directory. After the echo

Using Unix:

Using Unix: Create a script called dirfiles2.sh Script will display indicate which

Create a script called dirfiles2.sh Script will display indicate which files are directories vs regular files in the /etc directory. After the echo bin, add two variables to format with color as the following lines: RED1033 [0;31m NC-,\033 [0m , # No Color Use a for control structure to use check files in the /etc/ directory. Test if file is a directory. If it is, echo "$i is a directory." Test if file is a regular file. If it is: echo -e "${RED}$1 ${NC} s a regular file

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 Databases Questions!