declare -a identifications=(
'10760260000119 - 34234324' # ok
)
declare -a years=(
2010
2011
2012
2013
2014
)
for identification in "${identifications[@]}"
do
for year in "${years[@]}"
do
downloader --type=CNPJ --format=XLS --identification=${identification:0:14} --password=${identification:16:20} --competence=${year} --output="$identification - $year"
done
done
I created this bash script using a MacBook Pro Yosemite 10 and now i'm trying to use in a ubuntu 14 server (AWS) and is causing a syntax error:
bash/2010.sh: 1: bash/2010.sh: Syntax error: "(" unexpected
Maybe i need install some package?
Thanks.
#!/bin/bashat the top of your file? If not, add one.bash bash_program.sh.