= > > Please, any idea about the error message?
= > > ( The error doesn't appear on my other FreeBSD box)
= > >
= > > Is there any better way to get the Name field extracted?
= > I would do it like this:
= > finger -l arcad | head -1 | sed 's/.*Name: \(.*\)$/\1/'
= > but finger can be dangerous (try creating a huge .plan for instance)
= > so if the user is local, why not use
= > grep '^arcad' /etc/passwd | cut -d':' -f5
= > instead?
= Thanks for the tip!
= However, as I'm not able to get this to work:
= grep '^$username' /etc/passwd | cut -d':' -f5
$ grep '^$username' /etc/passwd | cut -d':' -f5
$ grep "^$username" /etc/passwd | cut -d':' -f5
= I think my problem is to get the grep understand that $username is a
Charlie "Older than dirt" Sorsby Edgewood, NM "I'm the NRA!"