Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help with a script. #1

Closed
olandodeflexy opened this issue Feb 27, 2022 · 0 comments
Closed

Need help with a script. #1

olandodeflexy opened this issue Feb 27, 2022 · 0 comments

Comments

@olandodeflexy
Copy link

I know this is not an issue but I needed help with a script and this is the only way I can reach out.

Bash: Pattern Matching
Given an array of strings, count the strings
that contain at least one uppercase character
and output the result to stdout.
Example:
my array=[FirstWord" "Word2" "thirdiword']
The match_uppercase function will return 2
since "FirstWord" and "Word2" each contain
an uppercase letter.

function match_uppercase(){
typeset -a data = ("$@")
// Code goes here

}

Sample Input For Custom Testing
Abc
bcd
Efs
def
cDe

Sample Output
Explanation
There are 3 strings containing at least one
uppercase character: Abc', "Efg". and
TCDe".

Repository owner locked and limited conversation to collaborators Feb 27, 2022
@terminalforlife terminalforlife converted this issue into discussion #2 Feb 27, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant