'^' indicates the beginning of a line, '$' indicates the end will
s/^$name$/#$name/ do what you want? - Roger - ----- Original Message ----- From: "Jose Vicente" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 29, 2001 1:26 AM Subject: I need your help > Hi friends. > I am replacing a string using s///, in the following way:, but I only > need and exact string to be replaced, for example if I have a file with the > following strins: > amor > alto > a > bacho > And execute > ~s/$name/#$name/g > > where $name is equal to "a", so I have > > #amor > #alto > #a > b#acho > > But I want > amor > alto > #a > bacho > > Please help me. Because I need. > Bye and have a good year. > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]