I'm given a test file and am supposed to be able to count the words in a specific column of a file. The catch is that there are some lines that contain only numbers.
I know that the
wc will give the word count of something - but if I remember correctly it does not distinguish between numbers and actual words (so a file with 0184674673 HELLO would give a word count of two) - is there some non-convoluted way (short of going through each line in the column, checking if the word has any numbers, and incrementing a counter if not) of solving this with a command or no?
If you wanted to see a snippet of the file I've been given, here:
disobediently RESINY GRAPHICS lownesses prickers intractabiliti es 85790227 villainously MINIS blinkering applicants TORPIDITIES subtexts apportioned carded electrocardiograph SINTERED FOOTSORE ENTHRALMENTS Sherpa FLAN OVERRULES NEWSREADER 15318116 PUTRIDNESS EXECUTIONAL vanguard LUCENTLY CONGRUENTLY 14117187 pretending misshapes cowslip 18714723 JUDGES INTERNATIONALIZING DISCUSSES 85192973 quorate shirking SECURES scrofula exclude NUCLIDE shipwrecks prologuing indelicacy NUTRITIONS decompresses manlike aggregately NEGOTIANT chewy Egypt bloodsports STOREYS worthier BELLOWING HAEMATIN UNCONTROLLED SUFFERER CLOPPING DUALLY 5363130 DISCOMMODING ENTRANCED brilliantness changeableness driest uncouth abjectnesses grumpiness ache 94854804 JETSAMS barbarousness REPOSSESSIONS INCLINATION Jardine AUTHORISED parading ties Hillyer USHER COMPLIANCES disdainful 98908803 CANDIDACY Rostov titrates DICTIONARIES optimists luted WART RAPINE 94683675 cannibal hostilely KALI ADMIRATIONS 95714958 AMPUTATED 65196125 VIEWFINDER uprated narrowing disavowing ALPINES Stahl HEELLESS feminises LUCKINESSES patriarchate anticommunism