Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

Calling UNIX commands in BODS SCRIPT

$
0
0

Hi,

 

I have a scenario, where I have the input in Filename.txt

 

S|ABC|GB

S|ABC|TS

 

Output should be like

 

'GB','TS'

 

So,I written following UNIX command to get the above output;

 

grep "S|ABC" Filename.txt | cut -d'|' -f3 | xargs | sed "s/[^ ][^ ]*/'&',/g" | sed 's/,$//'

 

 

I want to call the above command in BODS SCRIPT. Is it can be accomplished?

 

Kindly show me some light on it.

 

Thanks


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>