No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
To Chubler XL #!/bin/sh touch fileuseranswer echo "**********WELCOME TO GROUCHO MARX UNIVERSITY**********" echo Username: read i echo Password: read j Username="${i}:{j}" if ( ! grep -q $Username /$HOME/PhaseTest/userinfo ) then echo "Wrong Login/Passwd" exit 2 fi echo echo -e " \c" date QFILE=./questions # max questions max=$(sed 's/^[1-8][0-8]*\. /#&/' ${QFILE} … | |
Hi I new to shell scripting and need help to continue my work.here is the code I have so far. #!/bin/sh touch fileuseranswer echo "**********WELCOME TO GROUCHO MARX UNIVERSITY**********" echo Username: read i echo Password: read j Username="${i}:${j}" if ( ! grep -q $Username /$HOME/PhaseTest/userinfo ) then echo "Wrong Login/Passwd" … |