I have to replace blank spaces (" ") of all the values from an array in shell script. So, I need to make an array like this:
$ array[0]="one"
$ array[1]="two three"
$ array[2]="four five"
looks like this:
$ array[0]="one"
$ array[1]="two!three"
$ array[2]="four!five"
Replacing every blank space to another character with a loop or something, not changing value by value.
array[0]=one, maybe?array[0] = oneisn't an assignment.