>
> In Perl, something like this would do it:
>
> perl -pi -e 'BEGIN{undef $/;} \
> s/ALINE\nANOTHERLINE\nYETANOTHERLINE/ALINE/s;' /path/to/file



this is just a subsitution command , it just subsitutes
ALIINE+ANOTHERLIN+YETANOTERLINE with ALINE

it could alo be done with sed :
sed -i "s/ALINE\nANOTHERLINE\nYETANOTHERLINE/ALINE/g"  script.txt


But what i really want to do is

if a certain pattern (A+B+C )
 A
 B
 C
is found  then bellow pattern A  delete pattern B and C



-- 
>
> सादर
> Agnello Dsouza
> www.linux-vashi.blogspot.com
>
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to