[K12OSN] OT: bash help
Peter Hartmann
peter at hartmanncomputer.com
Tue Aug 7 20:15:29 UTC 2007
Thanks Les! That's awesome to know.
On 8/7/07, Les Mikesell <les at futuresource.com> wrote:
> Peter Hartmann wrote:
> > I'm stumped on this one. I need to do a sort uniq on a csv file but
> > only by comparing the first field. Little help?
> >
>
> sort -u -k1,1 -t,
>
> The character following the t is your field separator. I'm not sure if
> you always get the first or last of the lines that match in the 1st
> field - better check that if it matters.
>
> --
> Les Mikesell
> les at futuresource.com
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
More information about the K12OSN
mailing list