Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripting Help

Status
Not open for further replies.

AIXtexas

Technical User
Feb 5, 2002
80
US
It seems that AIX 5.2 has added the username and a colon :)) to the output of the groups command. Does anyone know how to strip off the username and the colon?

ex. on 5.2

test01:/home/root (1002)#groups testuser
test : system adm security

I'd like the output to be:

test01:/home/root (1002)#groups testuser
system adm security

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top