[SunHELP] grep unique values


Fri Jul 26 08:13:57 CDT 2002


I got a healthy amount of responses, thanks.  grep suddenly
got replaced by:

  sort -u file

thanks evry1

-----Original Message-----
From: Markham, Richard [mailto:RMarkham at hafeleamericas.com]
Sent: Thursday, July 25, 2002 3:12 PM
To: Sunhelp (E-mail)
Subject: [SunHELP] grep unique values


I need help to grep a large file containing directory 
paths which are highly repeated values to list just
one occurence of each unique value.
ie. file contains:
  /luser
  /usr
  /usr
  /luser
  /temp
  /temp
grep only to return /user, /usr, /temp.

purpose is to make sure the directories are created on a 
remote machine prior to data transfer.

thanks
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list