I am new to bash shell writing and I need some help. I need to ask a user a name to search for. From the value the user has entered the information is pulled from a file called phonebook which displays the users name,address and telephone number. Then I have to give the option to give the user to type 'end' to quit. Here is my program can someone help me out.:rolleyes:
#My first script program
phonebook = 0
name = $1
#Enters a name to search for end exits if the user types end
echo "Enter a name to search for (type end to exit)"
ls- l| grep phonebook "$1"
#This is a loop to make sure a name is entered
if [$1= ]; then
echo "Please enter in a name"