Proper Syntax for If...Then..Else statements with a script
Hi there --
I am writing a script the prompts the user to enter a directory path, and then prompts the user to provide a hardware device file. Listed below is the part of the script that is involved with this issue: Code:
# Prompt the user for the directory in question |
if [ "$read" = "y" ]; then
# handle true case else # handle false case fi |
Hi there --
Thanks for your reply. I inserted the following if...else statement in the script: Code:
# Confirm the directory that was entered is the correct one Quote:
|
All times are GMT -5. The time now is 02:12 AM. |