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?
[ Parent
| on HN ]
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.
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.
Awk is named after its authors at Bell Labs: Aho, Williams, and Kernighan.
Aho, Weinberger, and Kernighan.
You are so right, thank you!
I'm not sure about that - I think you could argue that they're all oddly named.
That's exactly the point of parent comment.
I thought I heard something flying overhead.
also with at, bc, cd, cp, dd, df, du and so on
also - not pointing any fingers - I suspect for the same reason hexadecimal (which programmers shortened to hex) was used over the proper Latin sexadecimal.
Hm, I never realized that hexadecimal mixes the Greek prefix (hexa-) with Latin suffix (-decimal).
However, wouldn't proper Latin be sedecimal?
If I wrote things in sex Iād probably get fired.
I suspect the ability to count things other than words was added later.
To keep with the Unix tradition of short command names, I guess?