[SunHELP] grep unique values
Subhasis Gupta
subhasisg at yahoo.com
Thu Jul 25 23:34:55 CDT 2002
Try the command:
ls -al | awk '$9=="user"||$9=="usr"||$9=="temp"
{print $9}'
Let me know if it works in your case,
Subhasis
--- "Markham, Richard" <RMarkham at hafeleamericas.com>
wrote:
> 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