File Handling

2004-04-05 Thread senthil prabu
Hi, I have wrote a script to search for a pattern and replace it in all files of a directory,that i specified at commandline.I want another one thing is to be done in the script.That's,it should search only for the type of files I specified at commandline.That is,it should get the extensi

RE: help in find and replacing a string in a number of files

2004-04-02 Thread senthil prabu
Hi, I want to open all (.txt,.html,.js files) files in a particular directory and replace a text in all that files. What I done so far was a script to replace text in all files in the current directory. What I want was," When I run the script,it should ask for the path of a particular director