Hey Gurus,

I'm trying to write a bash script. There are 4 arrays: base10 base16 base62 base70.

I want to match an array based on two digits provided by argument $1.

e.g.  getArray 70 would select base70

I've looked at substitutions, and {parameter,bash,brace} expansions.

This substitution look possible ${foo/%from/to} (replace suffix) but that led me nowhere.

This looks like it should be *so easy*,

Amy takers?

Mike Wright


btw. this is a great bash cheatsheet  https://devhints.io/bash
--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to