Re: Escape quote when using-one-line-of-program mode

2007-11-09 Thread Tom Phoenix
On 11/8/07, howa <[EMAIL PROTECTED]> wrote: > 2. perl -pe 's/(?<=[^\\])\\\'//g' test.txt (Note a single quote is > inserted in the middle) Check your shell's documentation on how to quote command line arguments. If you need to find out what, exactly, a command-line argument says by the time it g

Re: Escape quote when using-one-line-of-program mode

2007-11-09 Thread Jenda Krynicky
From: howa <[EMAIL PROTECTED]> > My codes: > > This work: > > 1. perl -pe 's/(?<=[^\\])\\//g' test.txt > > > This does not: > > 2. perl -pe 's/(?<=[^\\])\\\'//g' test.txt (Note a single quote is > inserted in the middle) > > This also not working: > > 3. perl -pe "s/(?<=[^\\])\\\'//g" tes

Escape quote when using-one-line-of-program mode

2007-11-09 Thread howa
My codes: This work: 1. perl -pe 's/(?<=[^\\])\\//g' test.txt This does not: 2. perl -pe 's/(?<=[^\\])\\\'//g' test.txt (Note a single quote is inserted in the middle) This also not working: 3. perl -pe "s/(?<=[^\\])\\\'//g" test.txt So how to insert a single quote in example 2? Thanks