I want to replace the red pattern with another text:
i want to replace the text after the character ")" at the end of line up to the ";" character.
The file contain multiple CREATE TABLE statements.
I tryed with sed command..

Thanks
Marco

07-07-2013

Miven

Keep playing with sed. You'll eventually get it.

I dunno. What's the pattern? The semicolon? The brackets? The stuff that came before it? You have to find the pattern.

07-08-2013

Miven

BTW sometimes it works well to parse the original file into a tempfile that is more usable first, then run sed (or awk) on it.