Monday, 28 March 2016

Gawk: Count The Number of Upper or Lower Cases in a String

To count the number of upper case letters in a string,
echo 'ERica' | gawk '{print gsub("[A-Z]", "",$0)}'

No comments:

Post a Comment