This is the last part, there's more but I have finished that. Just need help with this.
Code:
I think this will work - grep "^${USERNAME}:" /etc/passwd - but I am having trouble making it work.
I need a loop, but am having trouble getting it to turn over completely.
Here are the instructions:
The text: Please enter a user name to find. The program then takes user input from the command line and checks to see if the user that the person entered exists on the system. If the user does not exist, the script sends an error message that says "try again or type exit to quit". If the user types exit the program will terminate. If the user does exist on the system (all users are located in /etc/passwd), the program will finger the user and returns the information to the screen. Once the successful user was found the program will exit normally. If the user is not found the program will loop until the user either types exit or successfully enters a user name.
thanks for checking it out.