chuntoon has asked for the wisdom of the Perl Monks concerning the following question:
I have a SQL file that is missing a single quote around a text field.
I am attempt to do a global search-and-replace from the command line as this is a one time deal. Unfortunately, it isn't working like I think it should.
When I attempt the following from the unix prompt I get a prompt for more input as follows:
I even attempt to escape the single-quote, to no avail:thug:/tmp> perl -p -i -e 's/ where/' where/g' *.sql >
I know it must be something small I am overlooking.thug:/tmp> perl -p -i -e 's/ where/\' where/g' *.sql >
Thanks, chuntoon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inserting a single-quote into a file
by hacker (Priest) on Jun 19, 2002 at 14:09 UTC | |
by Abigail-II (Bishop) on Jun 19, 2002 at 15:50 UTC | |
|
Re: Inserting a single-quote into a file
by Chmrr (Vicar) on Jun 19, 2002 at 12:54 UTC |