[colug-432] uniq versus unique
Thomas W. cranston
cranston.thomas at gmail.com
Fri Jan 28 00:25:01 EST 2011
On 01/27/2011 09:05 PM, jep200404 at columbus.rr.com wrote:
> Rob Funk wrote:
>
>
>> On Thursday, January 27, 2011 12:59:15 pm Thomas W. cranston wrote:
>>
>>> Still wondering why the terminal suggests installing john
>>>
>> Because "unique" is a command in the "john" package.
>>
> But of course, we are both wondering how/why trying to use uniq
> leads to a complaint about missing "unique".
>
> Thomas W. cranston,
>
> Please show us the output of the following commands:
>
> ls /bin /usr/bin | sort | uniq | head
> history | grep 'sort.*uniq'
> alias | grep uniq
> echo $PATH
> ps
>
> _______________________________________________
> colug-432 mailing list
> colug-432 at colug.net
> http://lists.colug.net/mailman/listinfo/colug-432
>
>
My bad, I started w/:
tom at 1520:~$ ls /bin /usr/bin | sort | less
I then added uniq, but misspelled it unique
tom at 1520:~$ ls /bin /usr/bin | sort | unique | less
Should have been:
tom at 1520:~$ ls /bin /usr/bin | sort | uniq | less
________________________________________
I will run the commands you asked for, and show their results
ls /bin /usr/bin | sort | uniq | head
history | grep 'sort.*uniq'
alias | grep uniq
echo $PATH
ps
tom at 1520:~$ ls /bin /usr/bin | sort | uniq | head
[
2to3
2to3-2.6
a2p
abrowser
aconnect
acpi_fakekey
acpi_listen
add-apt-repository
tom at 1520:~$ history | grep 'sort.*uniq'
501 ls /bin /usr/bin | sort | unique | less
507 ls /bin /usr/bin | sort | unique | less
509 ls /bin /usr/bin | sort | unique | less
511 ls /bin /usr/bin | sort | unique | less
516 ls /bin /usr/bin | sort | unique | less
518 ls /bin /usr/bin | sort | unique | less
519 ls /bin /usr/bin | sort | uniq | less
520 ls /bin /usr/bin | sort | uniq -d | less
521 ls /bin /usr/bin | sort | unique | less
534 ls /bin /usr/bin | sort | uniq | wc -l
535 ls /bin /usr/bin | sort | uniq -u" switch to only show unique| wc -l
536 ls /bin /usr/bin | sort | uniq -u" | wc -l
537 ls /bin /usr/bin | sort | uniq -u | wc -l
538 ls /bin /usr/bin | sort | uniq -u | wc
539 ls /bin /usr/bin | sort | uniq | grep zip
540 ls /bin /home/tom | sort | uniq | grep .txt
635 ls /bin /usr/bin | sort | uniq | less
636 ls /bin /usr/bin | sort | uniq | head
tom at 1520:~$ alias | grep uniq
tom at 1520:~$
tom at 1520:~$ echo $PATH
/home/tom/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
tom at 1520:~$ ps
PID TTY TIME CMD
2300 pts/0 00:00:00 bash
2366 pts/0 00:00:00 less
2521 pts/0 00:00:00 less
2531 pts/0 00:00:00 less
2537 pts/0 00:00:00 less
2545 pts/0 00:00:00 less
2648 pts/0 00:00:00 less
4812 pts/0 00:00:00 ps
tom at 1520:~$
Tom
More information about the colug-432
mailing list