Forum Discussion

venkat475's avatar
venkat475
New Contributor II
2 years ago

How to execute a Unix command in snaplogic

I would like to execute this unix command in snaplogic to convert the csv file so could you please help me to get this done 

 

awk -F'"' -v OFS='' '{ for (i=2; i<=NF; i+=2) gsub(",", "", $i) } 1' input.csv > output.csv

 

3 Replies

  • Hello venkat475,

    I'm not sure but, this might be also possible to be achieved using SnapLogic expressions and parsing / formatting workarounds.

    However if you have no other option, then you can use the Script Snap and the subprocess Python module to execute UNIX command directly on the Snaplex Node.

    Regards,

    Aleksandar.