I am attempting to create a script where a user can enter 3 different arguments (usernames) to see if they are online.I currently have who | grep ^$1 which will bring up whoever is searched then but when I try to add $2 and $3 likewho | grep ^$1 ^$2 ^$3it gives an error saying no such file or directory, but it works fine when I just have the single argument. Any suggestions?
Script to search for 3 different users online and print that
grep