Re: Facing problem with perl one-liner for single quote

2007-08-31 Thread Krishnan Hariharan
able to use single quotes for the original. If I understood it correctly, he wasn't... Krishnan Hariharan wrote: I wrote this one liner, perl -pi -e 's/signal TPOS_IN \: std_logic;/signal TPOS_IN \: std_logic \:= \'0\';/' file_name It looks like he was? John

Facing problem with perl one-liner for single quote

2007-08-30 Thread Krishnan Hariharan
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