Facing problem with perl one-liner for single quote
- From: krishnan_hariharan@xxxxxxxxxxx (Krishnan Hariharan)
- Date: Thu, 30 Aug 2007 20:09:37 -0700 (PDT)
Hi all,
I am trying a one-liner substitution for a content in
a file.
original file content
---------
signal TCLK_IN : std_logic;
signal TPOS_IN : std_logic;
---------
I want to change it as:
---------
signal TCLK_IN : std_logic;
signal TPOS_IN : std_logic := '0';
-------
I wrote this one liner,
perl -pi -e 's/signal TPOS_IN \: std_logic;/signal
TPOS_IN \: std_logic \:= \'0\';/' <file_name>
But here i get an error saying, "Unmatched single
quote".
Can you please give me an idea what is wrong and how
to overcome this?
Thanks in advance.
Regards,
HK.
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
.
- Follow-Ups:
- Re: Facing problem with perl one-liner for single quote
- From: Gunnar Hjalmarsson
- Re: Facing problem with perl one-liner for single quote
- From: John W. Krahn
- Re: Facing problem with perl one-liner for single quote
- Prev by Date: Re: parsing HTML content
- Next by Date: Re: Facing problem with perl one-liner for single quote
- Previous by thread: html template and tables
- Next by thread: Re: Facing problem with perl one-liner for single quote
- Index(es):