Link to home
Start Free TrialLog in
Avatar of lolaferrari
lolaferrariFlag for United Kingdom of Great Britain and Northern Ireland

asked on

AIX - check status of local accounts with id>100

I'm trying to extract the users on AIX usinig passwd file and lsuser to find id's > 100. I'm trying the sort as below but it just won't sort and I'm not sure why . any help would be greatly appreciated.

for ID in `grep : /etc/security/passwd | cut -f1 -d':'`;do lsuser -c -a id $ID | grep -v ^# | sort -n  -t: +1 ;done
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lolaferrari

ASKER

Many thans once again! Such a great help you are. I have another question that you will surely know the answer to. Would you be able to help with that?