title: parse error: Invalid numeric literal at line 1, column 6
body: <p>The 1 liner to grab the ticker works fine from commandline, but i get this error running in a script.</p>
  
  <p>I run the 1 liner that grabs TICKERD from commandline, that doesnt give me the error.</p>
  
  <p>But, i believe it is because of empty data in the array?</p>
  
  <pre><code>curl -k -s https://api.earningscalendar.net/?date=20190518
  []
  </code></pre>
  
  <pre><code>#!/bin/bash
  for i in {1..15}
  do
  newdate=`/bin/date -v +"$i"d +%Y%m%d`
  TICKERD=`curl -k -s https://api.earningscalendar.net/?date=$newdate | jq -r 'map([.ticker, .when] | join(", ")) | join("\n")' | grep -w "$1"`
  TICKERA=`echo $TICKERD | cut -d, -f1`
  if [ "$TICKERA" == "$1" ]
  then
  echo $TICKERD "is on" $newdate
  exit
  fi
  done
  </code></pre>
  
  <p>Error Message : </p>
  
  <pre><code>./earnings.sh ADSK
  parse error: Invalid numeric literal at line 1, column 6
  parse error: Invalid numeric literal at line 1, column 6
  parse error: Invalid numeric literal at line 1, column 6
  parse error: Invalid numeric literal at line 1, column 6
  ADSK, amc is on 20190523
  </code></pre>