Re: how to manipulate word using perl

2008-06-10 Thread John W. Krahn
Thomas Bätzler wrote: Gowri Chandra Sekhar Barla, TLS, Chennai wrote: I facing a problem to substitute extensions of file with " = " For example: In a file I have names of some files a.txt b.txt c.txt I want them to a= b= c= Do you just want to change the text in that file, or is tha

RE: how to manipulate word using perl

2008-06-09 Thread Thomas Bätzler
Hi, > I facing a problem to substitute extensions of file with " = " > > > For example: > > In a file I have names of some files > > a.txt > b.txt > c.txt > > I want them to > > a= > b= > c= Do you just want to change the text in that file, or is that file a list of filenames that you want

Re: how to manipulate word using perl

2008-06-09 Thread John W. Krahn
Rajnikant wrote: From: Gowri Chandra Sekhar Barla, TLS, Chennai [mailto:[EMAIL PROTECTED] I facing a problem to substitute extensions of file with " = " For example: In a file I have names of some files a.txt b.txt c.txt I want them to a= b= c= Try this: perl -pli -e 's/.txt/=/' in

RE: how to manipulate word using perl

2008-06-09 Thread Rajnikant
Try this: perl -pli -e 's/.txt/=/' input_file Search for 'How to replace some string in file' topic in same mailing list for more info. Thanks and Best regards, ~ Rajnikant Software Engg. Persistent Sys. Ltd. Ph. +91 98222 04088 -Original Message- From: Gowri Chan