[TriLUG] possible awk/grep question

Magnus magnus at trilug.org
Mon Dec 31 10:28:15 EST 2007


On Dec 31, 2007, at 9:38 AM, Joseph Mack NA3T wrote:

> getent was in another posting here awhile ago and not having
> seen it before, I had to look it up with google. But not
> having any reason to use it, I forgot about it. I think I'd
> better use it in my script or I'll forget it again.

I think getent is better to use than depending on /etc/passwd because  
if you use any sort of directory service, getent will pull from it.   
It makes your scripts/aliases a lot more flexible that way.




More information about the TriLUG mailing list