I declare a temporary file
TEMPFILE="$(mktemp)"
Then I have an awk statement fill it with an output... Next step, I have another AWK statement take out particular field to put into an array... this is 'crapping out'
DATES = ($(awk -F'/' '{print $2}' '${TEMPFILE}'))
I'm also parsing out into a separate array using a CUT (not sure if it's working either)
IPS = ($(cut -f2 $(TEMPFILE)))
I'm getting the error:
Script12.sh: line 36: syntax error near unexpected token `('
Script12.sh: line 36: `DATES = ($(awk -F'/' '{print $2}' '${TEMPFILE}'))'*