On Sun, Apr 07, 2013 at 01:13:09AM -0700, Linda Walsh wrote:
> > getent passwd 'Domain Administrator'
> Domain Administrator:x:500:18:Domain Admin accnt:/home/root:/bin/bash

getent(1) is fine where it's available, but it's not a standard tool,
so you can only use it on systems that have it.

If one's hypothetical tilde-expanding script only needs to run on recent
Linux systems, for example, then getent is a good approach.

Reply via email to