Open main menu

CDOT Wiki β

Changes

OPS235 Lab 1 - CentOS7 - HD2

72 bytes removed, 17:05, 17 May 2017
no edit summary
# Write a Bash Shell Script to prompt the user for a directory, and then display the file types for all files in that specified directory (hint: use the '''read''' command and then use the '''file''' command and '''command substitution''' with the '''ls''' command). Test the Bash Shell script by adding execute permissions and run the Bash Shell Script.
# Modify the previously created shell script to perform error checking after prompting for a directory to test if the specified directory does not exist. If it does NOT exist (i.e. true), display an error message indicating that the directory does NOT exist, and issue the command exit 1 to terminate the Bash Shell Script. Test the Bash Shell script by adding execute permissions and run the Bash Shell Script.
 
= Practice For Quizzes, Tests, Midterm & Final Exam =
 
# x
# x
# x
[[Category:OPS435]]
[[Category:OPS435 Labs]]
13,420
edits