Hello
I am trying to create a user input shell scipt. The objective is user should enter the circuit number and the input is saved in a log file. If the user does not enter anything then the question should prompt it until the circuit no. is entered.
Can any one please correct the code below. Appreciate your response.
#!/bin/sh
path=/var/log/circuit.txt
reply=" "
while ($reply ne ' ')
{
echo "Enter the Circuit Number:"
chomp ($reply = <STDIN>) >> $path
}