How to execute a Unix command in snaplogic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-27-2024 11:25 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2024 02:42 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2024 12:22 PM
Could you please provide the sample script snap how to include the python code within the existing python code which is there script snap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 08:08 AM
