1

collecting data, saving it into a file and rerun it again in bash script;

view story
linux-howto

http://askubuntu.com – I'm new to bash and have written this script to collect data then save it to an automated file. It runs fine til here but as I try to rerun the script to add another details it gives me errors. #!/bin/bash #This program helps the user to collect contact details. clear options="Add_User End_session" echo "1. Add another user" echo "2. End session" echo -n "Enter Selection:" read selection echo "" select opt in $options; do if ["$opt" = "End Session" ]; then echo done exit elif ["opt" = "Add another user"]; then echo "Dear, user . This script will help you to collect data from (HowTos)