How to execute unix commands from ant script
Posted on 2003-11-19
I am not sure if this is the correct place to ask, but i din't find any other category for Ant.
I am looking to run my ant script (buil.xml) having some unix commands. I am able to execute the java commands successfully.
I am typically looking for an shell script like the below to convert it to an ant script
sort -t, -d -k 1,1 -k 2,2 ./output/abc.dat > ./output/abcsort.dat
sort -t, -d -k 1,1 -k 2,2 ./output/xyz.dat > ./output/xyz.sort.dat
(where the dat files were comma separated files which need to be sorted)