[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] first part

From: Eduardo Bustamante
Subject: Re: [Help-bash] first part
Date: Mon, 23 May 2016 20:06:05 -0500

If you're not interested in the frequencies, you can drop the
sort|uniq -c   and use a   sort -u

I'd go with:

    cut -d- -f7 myfile | sort -u | wc -l

Or use the awk. Cut *might* be a little faster at this. And no, your
line is perfectly fine for your use case.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]