-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
  • 109,961
  • 14
  • 137
  • 171
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
  • 97,681
  • 90
  • 411
  • 885
Emmanual
  • 1
  • 6