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:

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
Get step-by-step solutions from verified subject matter experts
