----- Original Message ----- From: "Jose Vicente" <[EMAIL PROTECTED]>
> 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 try this whereby \b means border:- ~s/\b$name\b/#$name/g _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]