How to properly do a “not equal” string comparison in an array, and then delete the element in bash
I am attempting to do a != string comparison of the last three characters of each string element in an array, then delete the element if it is not equal, but it is not producing the expected results. I am sure my code is incorrect, so I am looking for some guidance on how to correct.
How to create a dynamic number of arrays with dynamic names in bash?
I am using bash version 5.1.16