I need an linux-based script (sh, PERL, sed, etc...) to...
1) read all .wav files in a directory /tmp/[login to view URL] 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/[login to view URL] 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] [login to view URL] DEBUGamdperson pcc:XXXXXXX time:2.120897 sec?
? or
2009-09-10 18:01:19.827944 [INFO] [login to view URL] DEBUGamdmachine pcc:XXXXXX time:2.120897 sec
6) rename the remaining .wav file to "[login to view URL]" or "[login to view URL]"where the first XXXX is the number, and the second is the time?
? This is for a <a href="[login to view URL]">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/[login to view URL] 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/[login to view URL] 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] [login to view URL] DEBUGamdperson pcc:XXXXXXX time:2.120897 sec or 2009-09-10 18:01:19.827944 [INFO] [login to view URL] DEBUGamdmachine pcc:XXXXXX time:2.120897 sec 6) rename the remaining .wav file to "[login to view URL]" or "[login to view URL]" where the first XXXX is the number, and the second is the time This is for
[voice broadcasting & hosted dialer][1]