lolaferrari
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER