I am trying to do below:
cores=("N1" "N2" "N3")
echo "${cores}"
When I run the script I am getting below:
./test.sh: 3: ./test.sh: Syntax error: "(" unexpected
Can someone please help?
I am trying to do below:
cores=("N1" "N2" "N3")
echo "${cores}"
When I run the script I am getting below:
./test.sh: 3: ./test.sh: Syntax error: "(" unexpected
Can someone please help?
Thanks, it worked.. Also I noticed I beginning the script with #!/bin/sh
which Ubuntu it seems not the way. Changed it to #!/bin/bash