Subject:
|
Re: Unix geeks
|
Newsgroups:
|
lugnet.publish, lugnet.off-topic.fun
|
Date:
|
Thu, 18 Feb 1999 12:32:51 GMT
|
Reply-To:
|
lpien@iwantnospam.ctp.comSAYNOTOSPAM
|
Viewed:
|
1869 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
Jasper Janssen wrote:
>
> On Wed, 17 Feb 1999 19:40:12 GMT, lehman@javanet.com (Todd Lehman)
> wrote:
>
> > cat /etc/words | awk '{print substr($0,1,3)}' | sort | uniq -c | sort
>
> Does uniq mess up the sorting? I don't see why you have to pipe it
> through sort twice otherwise. I mean, Yick. sort is a slow program
> anyway, so doing it twice where once would do :)
>
> Jasper
sort it once to get the word prefixes in order. uniq -c to get you a
count of the prefix occurrences prepended to the prefix after removeing
dups, sort it again to put the prefixes in order by number of
occurences.
If you really were the geek you claim you were :-), you would have known
the two sorts are for different reasons and there's no way using this
approach to avoid both. However, wc may be useful here if properly
applied. Have to think.
and if you haven't rewritten sort on your box to be faster, what kind of
geek ARE you? :-)
--
Larry Pieniazek http://my.voyager.net/lar
Stop the FDIC from spying on us! Go to
http://www.defendyourprivacy.com and sign the petition.
For me: No voyager e-mail please. All snail-mail to Ada, please.
- Posting Binaries to RTL causes flamage... Don't do it, please.
- Stick to the facts when posting about others, please.
- This is a family newsgroup, thanks.
|
|
Message has 1 Reply:
Message is in Reply To:
![](/news/x.gif) | | Re: Unix geeks
|
| (...) Does uniq mess up the sorting? I don't see why you have to pipe it through sort twice otherwise. I mean, Yick. sort is a slow program anyway, so doing it twice where once would do :) Jasper (25 years ago, 18-Feb-99, to lugnet.publish)
|
58 Messages in This Thread: ![Lego Easter Eggs! -Richard Dee (13-Feb-99 to lugnet.announce, lugnet.loc.uk)](/news/x.gif) ![](/news/246.gif) ![Re: Lego Easter Eggs! -Todd Lehman (13-Feb-99 to lugnet.loc.uk)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Richard Dee (13-Feb-99 to lugnet.loc.uk)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Todd Lehman (13-Feb-99 to lugnet.loc.uk)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Richard Dee (14-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/246.gif) ![Re: Lego Easter Eggs! -Jasper Janssen (14-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/246.gif) ![Re: Lego Easter Eggs! -Steve Bliss (15-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Jasper Janssen (16-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Steve Bliss (16-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/246.gif) ![Re: Lego Easter Eggs! -Anders Isaksson (16-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/246.gif) ![Re: Lego Easter Eggs! -Steve Bliss (16-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Lego Easter Eggs! -Richard Dee (17-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: Lego Easter Eggs! -Jasper Janssen (16-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Steve Bliss (16-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Jasper Janssen (17-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: Lego Easter Eggs! -Bram Lambrecht (17-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Mike Stanley (17-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Lego Easter Eggs! -Mike Stanley (17-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -John DiRienzo (17-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Lego Easter Eggs! -Richard Dee (15-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Jasper Janssen (16-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Lego Easter Eggs! -Larry Pieniazek (16-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/246.gif) ![Re: Lego Easter Eggs! -Jasper Janssen (16-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Lego Easter Eggs! -Steve Bliss (16-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Jasper Janssen (16-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Steve Bliss (16-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Jasper Janssen (17-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Steve Bliss (17-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/246.gif) ![Re: Lego Easter Eggs! -Mike Stanley (17-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Steve Bliss (17-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Unix geeks -Todd Lehman (17-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Unix geeks -Jasper Janssen (18-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/246.gif) ![You are here](/news/here.gif) ![](/news/46.gif) ![Re: Unix geeks -Jasper Janssen (19-Feb-99 to lugnet.publish, lugnet.off-topic.fun)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: Unix geeks -Alan Shutko (18-Feb-99 to lugnet.publish, lugnet.off-topic.fun)](/news/x.gif) ![](/news/46.gif) ![Re: Unix geeks -Larry Pieniazek (18-Feb-99 to lugnet.publish, lugnet.off-topic.fun)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Unix geeks -Todd Lehman (18-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Case-sensitivity in programming languages -Todd Lehman (17-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Case-sensitivity in programming languages -Steve Bliss (17-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Case-sensitivity in programming languages -Todd Lehman (18-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/246.gif) ![Re: Case-sensitivity in programming languages -Roy Earls (18-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Case-sensitivity in programming languages -Jasper Janssen (18-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: Case-sensitivity in programming languages -Steve Bliss (18-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Case-sensitivity in programming languages -Roy Earls (19-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/46.gif) ![Re: Case-sensitivity in programming languages -Steve Bliss (19-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: Case-sensitivity in programming languages -Steve Bliss (18-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Case-sensitivity in programming languages -Roy Earls (19-Feb-99 to lugnet.publish)](/news/x.gif) ![](/news/246.gif) ![Re: Case-sensitivity in programming languages -Jasper Janssen (20-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Case-sensitivity in programming languages -Roy Earls (20-Feb-99 to lugnet.publish)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Lego Easter Eggs! -Jason Spangler (13-Feb-99 to lugnet.loc.uk, lugnet.announce)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Lego Easter Eggs! -Huw Millington (13-Feb-99 to lugnet.loc.uk)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Richard Dee (13-Feb-99 to lugnet.loc.uk)](/news/x.gif) ![](/news/246.gif) ![Re: Lego Easter Eggs! -Simon Denscombe (14-Feb-99 to lugnet.loc.uk)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Richard Dee (14-Feb-99 to lugnet.loc.uk)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Lego Easter Eggs! -Huw Millington (14-Feb-99 to lugnet.loc.uk)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Richard Dee (14-Feb-99 to lugnet.loc.uk)](/news/x.gif) ![](/news/46.gif) ![Re: Lego Easter Eggs! -Steve Scott (14-Feb-99 to lugnet.loc.uk)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: Lego Easter Eggs! -Huw Millington (27-Feb-99 to lugnet.loc.uk)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|