Posts by Igor Brites • 26 points
1 post
-
1
votes1
answer115
viewsA: How to pass vector as argument in shell script?
There is no way to pass arrays directly to the script. One way to do this is to pass the array to a variable before, and pass it to the script: #!/bin/bash vetor=("$@") echo "${vetor[@]}" i=0 for…