I want to add &sometext to another text.

November 16, 2010 at 12:34:11
Specs: HP Unix
This is the command I am using.

sed s/sometext/\&\&newtext..sometext/g < file1.txt > filenew.txt.

But the command is not adding && in the file - filenew.txt. Any suggestions will be appreciated.

Regards


See More: I want to add &sometext to another text.

Report •

#1
November 16, 2010 at 13:04:22
I found the solution. I used sed -e "s/sometext/\&\&newtext..sometext/g" file1.txt > filenew.txt.

Anyother solutions, please do suggest.

Regards.



Report •
Related Solutions


Ask Question