Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2014 17:42:40 +0100
From:      Peter Boosten <peter@boosten.org>
To:        Janos Dohanics <web@3dresearch.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: uniq(1) on last field
Message-ID:  <C1660725-BF36-4F5F-9BA3-4E0231DB17A0@boosten.org>
In-Reply-To: <20141106110319.eb34eaa069a4881824072010@3dresearch.com>
References:  <20141106110319.eb34eaa069a4881824072010@3dresearch.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> 
> 
> I would like to use uniq(1) on the file name, which is of course the
> last field if / is used as field separator. 
> 
> How can I tell uniq(1) the "last field" if I have variable number of
> fields?


sort -u might be a better option

-- 
Peter Boosten








Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C1660725-BF36-4F5F-9BA3-4E0231DB17A0>