That can be viewed as two problems with the same answer. When you find word1, replace with your new word. When you find word2, replace with nothing, hence deleting it. Tip, look up docs on the s/// or substitute method
HTH John -----Original Message----- From: Jose Vicente [mailto:[EMAIL PROTECTED]] Sent: 20 December 2001 16:31 To: [EMAIL PROTECTED] Subject: I need your help Hi. I am trying two items in a script: - I have to read a file and when I find certain word I must change it for other one. - I have to read a file and when I find certain word I must delete it from the file and all the ocurrences. Thanks for your help. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------Confidentiality--------------------------. This E-mail is confidential. It should not be read, copied, disclosed or used by any person other than the intended recipient. Unauthorised use, disclosure or copying by whatever medium is strictly prohibited and may be unlawful. If you have received this E-mail in error please contact the sender immediately and delete the E-mail from your system. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]