mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-12-01 00:43:08 +01:00
21 lines
227 B
Awk
21 lines
227 B
Awk
|
#!/usr/bin/gawk -f
|
||
|
|
||
|
@include "inplace"
|
||
|
|
||
|
BEGIN {
|
||
|
while ((getline line < "-") > 0)
|
||
|
input = input line "\n"
|
||
|
close("-")
|
||
|
}
|
||
|
|
||
|
/TABLEEND/ {
|
||
|
table = 0
|
||
|
printf "%s", input
|
||
|
}
|
||
|
|
||
|
!table
|
||
|
|
||
|
/TABLESTART/ {
|
||
|
table = 1
|
||
|
}
|