hello,
i am trying to build an administrative bash script ehich collects contact information and writes to a file automaticlly.the information which are required include:
full name
DOB
Gender
House addresse
Phone number
email addressThank you

The while loop contains only the full name. I'll leave it to you to include the rest of the variables: #!/bin/bash while true do echo "enter fullname. Press <enter> to quit" read fullname if [[ -z "$fullname" ]] then echo "quitting" exit 0 fi echo "$fullname" >> file.txt done
thx NAILS, It was really helpful.
