The wc command is often touted as the fastest way to count the number of lines in a file, https://unix.stackexchange.com/questions/504892/what-is-a-quick-way-to-count-lines-in-a-4tb-file
When I tried to look for the source code of wc.c
that let uses do something like wc -l
or wc -c
, I've found the code from https://www.gnu.org/software/cflow/manual/html_node/Source-of-wc-command.html but
- Q (part a): Is this the actual source code for the wc command?
- Q (part b): Is there some mirror on github / gitlab / bitbucket for the code?
- Q (part c): If the
wc.c
file is different for different unix versions, how do file the source of thewc.c
? When I triedwhich wc
, it only points me to the binary.