Write a complete bash script that asks for a user name and uses the readcommand to accept the user name. (Use usernames C2456001 throughc2456030 to test.) The script reports if the user is logged in. Use the whocommand to obtain a list of users logged in then use grep in an if then elsestatement to match on the user name. Output whether that user is eitherlogged in or not logged in. (Usage: loggedIn.sh)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here