AWK (unexpected newline or end of string)

I’m trying to execute bash script but I’m got stuck.

test.txt 
    cat,command,for
    cp,command,for
    ls,command,to


#!/bin/bash    

    CUT_FILE=test.txt
    LCTN_ID="8002"
    LCTN_NAME="TEST FILE"
    LCTN_ADDR1="This is test"

        cat $CUT_FILE | awk -F ','  '{ print  '$TRN_GUID','$LCTN_ID','$LCTN_NAME','$LCTN_ADDR1',$1,$2 }'

Output

    -bash-3.2# sh test4
    awk: cmd. line:1: { print  1bcd1adf-2016-443b-9f00-2e4ce20726d7,8002,TEST
awk: cmd. line:1:                                                                 ^ unexpected newline or end of string

The output should be like this

 1bcd1adf-2016-443b-9f00-2e4ce20726d7,8002,"TEST FILE","This is test",cat,command

Please help me


Source: shell

Leave a Reply