Aarune J. Oracle on Sun, 16 Jan 2000 13:47:15 -0500 (EST) |
grep $1 /etc/passwd You can also read up a little on awk and it may show you a way to cut out all of the garbage that it sends in the /etc/passwd file. -- -Rune In a display of perverse brilliance, Carl the repairman mistakes a room humidifier for a mid-range computer but manages to tie it into the network anyway. -- The 5th Wave it's the same old story; boy meets beer, boy drinks beer... boy gets another beer. -- Cheers On Sun, 16 Jan 2000, Michelle Weber wrote: :Date: Sun, 16 Jan 2000 10:16:20 -0500 (EST) :From: Michelle Weber <umweber@mcs.drexel.edu> :Reply-To: plug@lists.nothinbut.net :To: plug@lists.nothinbut.net :Subject: [PLUG] check for existing user : :What would be the easiest way to check for an existing user with a shell :script? So that if it does exist i can do one thing, and if it doesn't i :can do another? : : :Thanks, : : : ______________________________________________________________________ Philadelphia Linux Users Group - http://plug.nothinbut.net Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce General Discussion - http://lists.nothinbut.net/mail/listinfo/plug
|
|