Hi guys hope u can help.
I have a file called test1.php as follows....
==========================
==========
==========
===== test1.php
//# ooIT-AUDITINGPLACEHOLDERoo
1 #
case 'menu3_it_auditing_compute
rs.php':
case '/simeswiki/menu3_it_audit
ing_disk.p
hp':
case '/simeswiki/menu3_it_audit
ing_groups
.php':
case '/simeswiki/menu3_it_audit
ing_networ
king.php':
case '/simeswiki/menu3_it_audit
ing_users.
php':
case '/simeswiki/menu3_it_audit
ing_vmware
.php':
//# ooIT-AUDITINGPLACEHOLDERoo
2 #
etc
etc
etc
==========================
==========
==========
==========
======
What id like to do is to:
1) Use the command 'sed' to find the following string:
//# ooIT-AUDITINGPLACEHOLDERoo
1 #
2) Once found,
Remove all lines between
//# ooIT-AUDITINGPLACEHOLDERoo
1 #
and
//# ooIT-AUDITINGPLACEHOLDERoo
2 #
so the result is:
//# ooIT-AUDITINGPLACEHOLDERoo
1 #
//# ooIT-AUDITINGPLACEHOLDERoo
2 #
Any help greatly appreciated.
I dont want a new file created, but just to modify this existing file.
Thank you.
Start Free Trial