I need to mass replace a string in many sql files (preferably in shell). The string I need to replace looks like this (20120408, 20120409, 20120410) but it can have any amount of whitespace inside (not in the numbers though). For example it can be
(20120408, 20120409 , 20120410 ) or
( 20120408 , 20120409 , 20120410)
I need to put some other string, let's say (XXX) instead of it. The brackets must stay.
Thanks in advance for your help.
EDIT.
Let me be more specific. I need only strings of the types above converted to (xxx). This means that the numbers are important. I do NOT want just anything between two brackets to be replaced, so if I have (19002344) I don't want it replaced.
The only thing that needs to be replaced is the three numbers above in brackets with any amount of whitespace in between.
Hope this clear the misunderstanding.