I need help with checking a number next to a word from an array, here is the output from the array:
declare -a my_array=([0]="user.name 16" [1]="user.name2 11" [2]="user.name3 7" [3]="user.name 2"
as you can see, after each username there is a number, what cycle can be used to check exactly (of course, in each element of the array, there can be either 1 or 100) this number (less than 20) and write the username and the original number in the output?