drklepto
October 1st, 2009, 10:03 AM
Hi,
I need to perform an operation on a quite big file.
It's organized as this example:
extra-sounds-en.txt
conf-enteringno: You are entering conference number
conf-errormenu: Invalid Choice
conf-extended: The conference has been extended.
(asterisk voice prompts)
I need to split it in multiple files named with the string preceding ":" and with the last part of the string as content.
conf-enteringno.txt
Invalid Choice
conf-errormenu.txt
This call may be
conf-extended.txt
The conference has been extended.
Anyone knows the mythologic bash-regexp-sed-awk-etc.etc secrets? :D
I'm not that good in that field...
Many thanks for your help!
kLe
For anybody curious: I need this to create a full set of asterisk voice prompts on my own language, by using a TTS engine.
I need to perform an operation on a quite big file.
It's organized as this example:
extra-sounds-en.txt
conf-enteringno: You are entering conference number
conf-errormenu: Invalid Choice
conf-extended: The conference has been extended.
(asterisk voice prompts)
I need to split it in multiple files named with the string preceding ":" and with the last part of the string as content.
conf-enteringno.txt
Invalid Choice
conf-errormenu.txt
This call may be
conf-extended.txt
The conference has been extended.
Anyone knows the mythologic bash-regexp-sed-awk-etc.etc secrets? :D
I'm not that good in that field...
Many thanks for your help!
kLe
For anybody curious: I need this to create a full set of asterisk voice prompts on my own language, by using a TTS engine.