P
Prince Kumar
I have a file with the following contents.
drop table tabl1;
create table tabl1 (
col1
col2
col3);
drop table tabl2;
create table tabl2 (
col1
col2);
...
I want to replace "create table * );" with
"create table * ) IN TBSP1;"
I tried the following, but I am not getting the desired result.
perl -p -e 'undef $/; s/^CREATE TABLE (.*?)\);$/CREATE TABLE $1 \) IN
TBSP/s' my_input_file.
Your help is appreciated.
Thank You!
drop table tabl1;
create table tabl1 (
col1
col2
col3);
drop table tabl2;
create table tabl2 (
col1
col2);
...
I want to replace "create table * );" with
"create table * ) IN TBSP1;"
I tried the following, but I am not getting the desired result.
perl -p -e 'undef $/; s/^CREATE TABLE (.*?)\);$/CREATE TABLE $1 \) IN
TBSP/s' my_input_file.
Your help is appreciated.
Thank You!