if you have perl installed: perl �i.bak �p �e 's/this/that/g;' myfile
would do the same trick. The line above search for the occurence of 'this' on myfile and replaces it with 'that'. The -i option lets you create a backup for affected files. In our example myfile.bak will be the backup file. HTH Val --- [EMAIL PROTECTED] wrote: > ika nga ni [EMAIL PROTECTED] noong 2002.10.11 @ > 16.36: > > hello guys, > > sorry because i got no programming background so > please bear with me. anyway > > my problem is my boss want's me to edit all his > created jsp files in a > > certain tomcat directory and change in all his jsp > application with a .jsp > > extension a line entry that says > http://jakarta.apache.org/taglibs/display > > to all be changed as > > /WEB-INF/display.tld > > you can try: > $ cat filename.jsp | sed s/pattern to search > for/pattern to replace it with/ > filename.jsp > > > __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
