Automatic Script to Sox and Grep
$15-20 USD
Paid on delivery
I need an linux-based script (sh, PERL, sed, etc...) to...
1) read all .wav files in a directory /tmp/[url removed, login to view] where XXXX equals a number?
2) for each of the files, use SOX to split the stero tracks?
3) delete the second track (only keep the first)?
4) grep a file /usr/local/freeswitch/log/[url removed, login to view] for the XXXXXX found in the wav file found in step #1?
5) this should output a single line that matches a pattern like
2009-09-10 18:01:19.827944 [INFO] [url removed, login to view] DEBUGamdperson pcc:XXXXXXX time:2.120897 sec?
? or
2009-09-10 18:01:19.827944 [INFO] [url removed, login to view] DEBUGamdmachine pcc:XXXXXX time:2.120897 sec
6) rename the remaining .wav file to "[url removed, login to view]" or "[url removed, login to view]"where the first XXXX is the number, and the second is the time?
? This is for a <a href="[url removed, login to view]">hosted predictive dialer and voice broadcasting company </a>
## Deliverables
I need an linux-based script (sh, PERL, sed, etc...) to... 1) read all .wav files in a directory /tmp/[url removed, login to view] where XXXX equals a number 2) for each of the files, use SOX to split the stero tracks 3) delete the second track (only keep the first) 4) grep a file /usr/local/freeswitch/log/[url removed, login to view] for the XXXXXX found in the wav file found in step #1 5) this should output a single line that matches a pattern like 2009-09-10 18:01:19.827944 [INFO] [url removed, login to view] DEBUGamdperson pcc:XXXXXXX time:2.120897 sec or 2009-09-10 18:01:19.827944 [INFO] [url removed, login to view] DEBUGamdmachine pcc:XXXXXX time:2.120897 sec 6) rename the remaining .wav file to "[url removed, login to view]" or "[url removed, login to view]" where the first XXXX is the number, and the second is the time This is for
[voice broadcasting & hosted dialer][1]
Project ID: #2873656