TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:16635] c++ code
Darth Vader said:
> Hey, off topic here, does anyone have any C++ code that parses a text
> file and gives useful information
Any particular reason it needs to be C++?
> like the number of words on the file
cat myfile | wc -w
> and the number of UNIQUE words
fmt -w 1 myfile | sort | uniq | wc -w
--
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton
Geek Code 3.1: GCS d- s+: a- C++ UL++$ P+>+++ L++>++++ E- W--(++) N+ o+ !K
w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI++++ D G e* h+ r++ y+
- References:
- c++ code
- From: Darth Vader <wait0018@tc.umn.edu>