I have a file containing the following text:
we are going to write something 1 2 3
wc tells me I have 1 line 9 words and 38 characters.
I'm looking to count the 26 letters only (
a-z, no numbers or white spaces etc).
Here's my current solution:
grep -o [[:alpha:]] filename | wc -l
I really want to know if there is a "better" way to do this at the command line.