News for hackers. Stuff that matters.
Re:On Counting (2017) by saagarjha on Thursday May 24, 2018 @05:57AM (#17142533)
> The oddly named wc is a command used to count things.

It’s named after word count.

Re:On Counting (2017) by Alex63 on Thursday May 24, 2018 @12:47PM (#17145841)
I wonder if the author might have thought it was an odd name because "wc" is also used in some English-speaking countries as an abbreviation for "water closet", a synonym for a flush toilet.
Re:On Counting (2017) by AstralStorm on Thursday May 24, 2018 @06:02AM (#17142557)
Still oddly named. Why isn't it called count or cnt?
Re:On Counting (2017) by Ensorceled on Thursday May 24, 2018 @07:04AM (#17142839)
wc shares an environment with grep, awk, sed and vi; wc is NOT oddly named.
Re:On Counting (2017) by Sir_Cmpwn on Thursday May 24, 2018 @11:32AM (#17144980)
For those interested in the etymology of these:

grep is from the ed command (which itself is short for editor, the original Unix text editor) g/re/p, which Globally searches for a Regular Expression and Prints it.

sed is Stream EDitor.

vi is VIsual editor, which is so named because it's like ed but shows you what you're editing.

Not sure where the name awk comes from.

All of these tools are closely related to the venerable ed(1) command.

Re:On Counting (2017) by Wald76 on Thursday May 24, 2018 @12:23PM (#17145560)
Awk is named after its authors at Bell Labs: Aho, Williams, and Kernighan.
Re:On Counting (2017) by magoghm on Thursday May 24, 2018 @12:58PM (#17145965)
Aho, Weinberger, and Kernighan.
Re:On Counting (2017) by Wald76 on Sunday May 27, 2018 @08:04AM (#17166556)
You are so right, thank you!
Re:On Counting (2017) by pgl on Thursday May 24, 2018 @07:23AM (#17142936)
I'm not sure about that - I think you could argue that they're all oddly named.
Re:On Counting (2017) by enedil on Thursday May 24, 2018 @09:10AM (#17143590)
That's exactly the point of parent comment.
Re:On Counting (2017) by pgl on Thursday May 24, 2018 @09:18AM (#17143663)
I thought I heard something flying overhead.
Re:On Counting (2017) by tpm on Thursday May 24, 2018 @07:16AM (#17142894)
also with at, bc, cd, cp, dd, df, du and so on
Re:On Counting (2017) by lainga on Thursday May 24, 2018 @11:36AM (#17145035)
also - not pointing any fingers - I suspect for the same reason hexadecimal (which programmers shortened to hex) was used over the proper Latin sexadecimal.
Re:On Counting (2017) by romwell on Thursday May 24, 2018 @10:43PM (#17150251)
Hm, I never realized that hexadecimal mixes the Greek prefix (hexa-) with Latin suffix (-decimal).

However, wouldn't proper Latin be sedecimal?

Re:On Counting (2017) by hinkley on Friday May 25, 2018 @12:23AM (#17150599)
If I wrote things in sex I’d probably get fired.
Re:On Counting (2017) by rotten on Thursday May 24, 2018 @06:55AM (#17142799)
I suspect the ability to count things other than words was added later.
Re:On Counting (2017) by saagarjha on Thursday May 24, 2018 @06:13AM (#17142607)
To keep with the Unix tradition of short command names, I guess?
Re:On Counting (2017) by LukeShu on Thursday May 24, 2018 @10:21AM (#17144190)
`wc` was in 1st edition Unix. It was setting the tradition, not keeping with it!
Re:On Counting (2017) by wodenokoto on Thursday May 24, 2018 @08:06AM (#17143143)
And overlap with a common abbreviation that refers to a toilet, WC (water closet)[1]

So yes, it has an odd name, and I'm sure the inventor of the wc command thought it funny.

[1] https://en.wikipedia.org/wiki/Flush_toilet