Platform: CentOS Linux
Language: Shell
Hello. So I have a text file named goob, containing the following contents:
function-a()=""
{
type=scythe
value-b=true
{
under="false"{}
}
}
function-b()=""
{
type=hook
value-b=true
{
under="false"{}
}
}
function-c()=""
{
type=scythe
value-b=true
{
under="false"{}
}
}
What needs to happen is for all functions with type "scythe", I need to remove the whole block of their value-b such that the result would be
function-a()=""
{
type=scythe
}
function-b()=""
{
type=hook
value-b=true
{
under="false"{}
}
}
function-c()=""
{
type=scythe
}
Any ideas? Thanks in advance.