The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Unique Result
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-28-2008
unibboy unibboy is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 10
Unique Result

Good day folks,

I am trying to get the logged in users with the 'users' command, but I am having difficulty in making the name of users to appear only ONCE even if they are currenly logged in more than one terminal.

I could not use uniq becuase that only work with lines, but the users command does not print the result in lines.

many thanks in advance