Company: Intuit_18_jan
Difficulty: medium
Bash: Pattern Matching Problem Description Given an array of strings, count the strings that contain at least one uppercase character and print the count to STDOUT. Complete the Bash function match_uppercase . It receives the elements of the array my_array as its positional arguments (the starter copies them into the local array data with typeset -a data=("$@") ) and must print the count. A string is counted once if it contains one or more of the letters A to Z , no matter how many uppercase letters it has or where they appear. Input Format Read from standard input. The starter code already reads it for you and stores it in my_array . s[1] s[2] ... s[n] Each line is one element of the array, taken as a whole: a line such as one two Three is a single string that contains spaces. (inferred -- the source shows one element per line in its custom-testing input and calls the function as match_uppercase "${my_array[@]}" .) The input ends with a newline after the last string. Output Format Pri