On Saturday 21 Jun 2008, Agnello George wrote:
hi I am trying to edit a file through a shell script, but i am trying to edt it in a particular manner
here is a typical scenario i am facing
I have a file called script.txt withe following content :
*the owner of the* *trademark UNIX* *is The Open Group* *an industry standards* *consortium*.
Now i want to edit this file , but i want to edit this file in such a manner that after a given pattern i should be able to search an entire block-pattern , then delete that block-pattern .
for example suppose
after this given pattern */trademark UNIX/ * if exist then i want to delete the block-pattern /*is The Open Group*\n*an industry standards/*
What exactly do you want to delete? The next two lines? The specific text ...Open group...industry standard...? Up to some other pattern?
-- Raju