Replacing "XXX" with "Name1 Name2 <name1@company.com>"
From: Tarak Parekh (tarakparekh_at_yahoo.com)
Date: 01/24/04
- Previous message: D. Abaimov
: "Re: Save your job, deport H1 B's now" - Next in thread: Rich: "Re: Replacing "XXX" with "Name1 Name2 <name1@company.com>""
- Reply: Rich: "Re: Replacing "XXX" with "Name1 Name2 <name1@company.com>""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Jan 2004 15:17:28 -0800
Hello,
I tried searching for this but was a little out of luck.
Id like to replace "XXX" in a file with "Name1 Name2 <name1@company.com>".
Its a little silly but i am doing this in perl using perl ->
$name = "Name1 Name2"
$login= "name1";
system "perl -p -e \'s/XXX/$name\<$login\@company.com\>/g\' file.html > file1.html"
The @company is getting interpreted (i guess as a variable) and i just get
$login.com
Can someone help me with this? I am sure there are better ways to do it too.
thanks,
tarak
- Previous message: D. Abaimov
: "Re: Save your job, deport H1 B's now" - Next in thread: Rich: "Re: Replacing "XXX" with "Name1 Name2 <name1@company.com>""
- Reply: Rich: "Re: Replacing "XXX" with "Name1 Name2 <name1@company.com>""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|