Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!hal!nic.MR.NET!uwmcsd1!marque!uunet!mcvax!unido!tub!tmpmbx!netmbx!felix From: felix@netmbx.UUCP (Felix Gaehtgens) Newsgroups: comp.unix.xenix Subject: Re: Finding the user name via the shell Keywords: shell variables Message-ID: <1794@netmbx.UUCP> Date: 6 Dec 88 12:00:48 GMT References: <6323@polyslo.CalPoly.EDU> Reply-To: felix@netmbx.UUCP (Felix Gaehtgens) Organization: netmbx Public Access Unix, Berlin, West Germany Lines: 11 In article <6323@polyslo.CalPoly.EDU> mdella@polyslo.CalPoly.EDU (Marcos R. Della) writes: >I was wondering if anyone out there knew how to determine the users >login name while running a shell script. I can get the home address >$HOME, but not the name. This is under sco xenix 2.2.3 I think... how about: set name=`who am i | cut -f1 -d" "` so long, felix