Hi,
may be the heading of the post is not right but i dont know how to
explain this.
basically.
suppose you have an array which has value like this
Check Fault Check :
Check Chassis fault :
Check email :
DISK WARNING - usage: C: 36797 MB (90%) 2013-10-08 11:12:35
What i want to do is :
if i find a line which is example : "Check Fault Check : " ( which end
with : )
i want to know if there are any other lines under this line or not, if
there is not then i want to delete “Check Fault Check”
So basically
i want to delete bellow 2 lines as there is not any thing under those
line which does not END With “:”
Check Fault Check :
Check Chassis fault :
but I want to keep “Check email :” as there is a line under that…
Can this be done ??
please let me know