[SunHELP] grep unique values

DAUBIGNE Sebastien - BOR ( SDaubigne@bordeaux-bersol.sema.slb.com ) SDaubigne at bordeaux-bersol.sema.slb.com
Fri Jul 26 04:55:55 CDT 2002


egrep "/usr|/user|/temp"  the_file | sort -u
---
Sebastien DAUBIGNE
sdaubigne at bordeaux-bersol.sema.slb.com <mailto:sebastien.daubigne at sema.fr>
- (+33)5.57.26.56.36
SchlumbergerSema - SGS/DWH/Pessac


	-----Message d'origine-----
	De:	Markham, Richard [SMTP:RMarkham at hafeleamericas.com]
	Date:	jeudi 25 juillet 2002 21:12
	:	Sunhelp (E-mail)
	Objet:	[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