jeudi 26 mars 2015

Error: Syntax error: "(" unexpected (expecting "done")


This is my code,



#!/bin/sh

condition_while_one=true

while $condition_while_one
do
first_awk_variables=`tail -n1 /my/file/start_up_job/some_csv_file.csv | awk -F, '{print $3, $4, $5, $7, $10 }'`
first_awk_variables_value_array=($first_awk_variables) #turns contents of 'first_awk_variables' into an array 'first_awk_variables_value_array'
done #


I get the following error Syntax error: "(" unexpected (expecting "done")


What am I doing wrong?



Aucun commentaire:

Enregistrer un commentaire