Personal tools
You are here: Home DB2 Useful Unix and Linux Commands How to get a csv list of system users?
Navigation
Log in


Forgot your password?
 
Document Actions

How to get a csv list of system users?

Sometimes you need to get a list of users to generate a script like governor´s config file. All your users must have a common name pattern, in this case: usr0.

cat /etc/passwd | cut -f 1 -d ":" | sort | grep -i usr0 | tr -c '[:alnum:]' ','  | tr -d "\n"
Security Awareness
Would you like your company to implement gamification into your security awareness program?





Polls