[CentOS] Sorting of passwd/group files

Tony Schreiner schreian at bc.edu
Fri Mar 31 16:39:24 UTC 2006

On Mar 31, 2006, at 11:31 AM, Kai Schaetzl wrote:

> Is there a program on CentOS which will sort my passwd/group etc.  
> files by
> username or uid/gid? On Suse I can do this with a sysconfig switch and
> Suseconfig, is there something similar on RH-based systems?
> Kai
> -- 
> Kai Schätzl, Berlin, Germany
> Get your web at Conactive Internet Services: http://www.conactive.com

sort -t: +0 /etc/passwd >outfile-byname
sort -t: -n +2 /etc/passwd >outfile-byuid

for what purpose do you need this?


More information about the CentOS mailing list