-1

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?

John1024
  • 103,964
  • 12
  • 124
  • 155
Emmanual
  • 1
  • 6

1 Answers1

-1

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

jww
  • 90,984
  • 81
  • 374
  • 818
Emmanual
  • 1
  • 6