uniq(1) on last field

Peter Boosten peter at boosten.org
Thu Nov 6 17:06:41 UTC 2014


> 
> 
> 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







More information about the freebsd-questions mailing list