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
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
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