"David Carpenter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a text file with occasional strings enclosed in braces: > kdkdkiwiwdkdkdk {iwidkwidkw} kdkdkdwiwiwkdkdk . . . > > I would like to use tr/// to modify the characters within the braces, while > leaving the rest of the file unchanged. tr///; is the wrong tool. you want s///; $ perl -e '($_ = <STDIN>) =~ s/{old}/{new}/g;print();' im {old}, your old, whos {old}? im {new}, your old, whos {new}? Is that what you are looking for? Todd W. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]