Você precisa de algo assim:
sed '/table new.*pvbt_table/, /^$/d;/pvbt_table/d' input_file
Eu tenho um arquivo com padrões repetitivos, como abaixo:
set m [ meas new $proj rajesh ]
meas $m set_type lvf_timing
abcde erft 1213
234 456 897 00000000000000
once upon a time
set t [ table new $m pvbt_table ]
table $t set_region_set_name lvf_clusters
table $t set_instance_condition derate_instance_condition
table $t set_corner_condition derate_corner_condition
set a [ axis new $t parameter_axis CPS]
set a [ axis new $t parameter_axis RPB]
set a [ axis new $t parameter_axis periphery_Vt]
set a [ axis new $t process_axis]
set a [ axis new $t voltage_axis]
set a [ axis new $t temperature_axis]
set a [ axis new $t bias_axis vdda]
set t [ table new $m table ]
table $t set_equation {derate_equation pvbt_table}
table $t set_region_set_name lvf_clusters
table $t set_corner_condition derate_corner_condition
set a [ axis new $t parameter_axis CPS]
set a [ axis new $t parameter_axis RPB]
set a [ axis new $t parameter_axis periphery_Vt]
set a [ axis new $t process_axis]
set a [ axis new $t voltage_axis]
set a [ axis new $t temperature_axis]
set a [ axis new $t bias_axis vdda]
Eu quero que esse arquivo seja processado para que todos esses padrões sejam modificados assim:
set m [ meas new $proj rajesh ]
meas $m set_type lvf_timing
abcde erft 1213
234 456 897 00000000000000
once upon a time
set t [ table new $m table ]
table $t set_region_set_name lvf_clusters
table $t set_corner_condition derate_corner_condition
set a [ axis new $t parameter_axis CPS]
set a [ axis new $t parameter_axis RPB]
set a [ axis new $t parameter_axis periphery_Vt]
set a [ axis new $t process_axis]
set a [ axis new $t voltage_axis]
set a [ axis new $t temperature_axis]
set a [ axis new $t bias_axis vdda]
Você precisa de algo assim:
sed '/table new.*pvbt_table/, /^$/d;/pvbt_table/d' input_file