Hi fpmurphy
i do exactly what you say:
echo $HEADER > ../$CUSTOMER_DIRECTORY/new.csv
cat ../$CUSTOMER_DIRECTORY/${FILE_OUT_NAME}${OUTFILE_YEAR}${INCREMENT}.csv >> ../$CUSTOMER_DIRECTORY/new.csv
cat ../$CUSTOMER_DIRECTORY/new.csv
the output of the above command (new.csv) is:
"xxxx08","xxxxxxx","171008","15:05:39","1","4"," 232 ../xxxx/xxxxx xxxx_080910.txt"
exactly the same as when it goes in??? it just seems to ignore the ../$CUSTOMER_DIRECTORY/${FILE_OUT_NAME}${OUTFILE_YEAR}${INCREMENT}.csv ???
see below contents of both files that go in to above command:
contents of new.csv
"xxxx08","xxxxxxx","171008","15:05:39","1","4"," 232 ../xxxx/xxxxx xxxx_080910.txt"
contents of ${FILE_OUT_NAME}${OUTFILE_YEAR}${INCREMENT}.csv"
"","ABC","","12345678","","","","","","","","","","","CH1 7DD"
Why is it not working??
Not that it matters but i am in KSH