mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 07:23:07 +01:00
17 lines
176 B
Bash
17 lines
176 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
table="$(mktemp XXXXXX)"
|
||
|
trap 'rm "$table"' EXIT
|
||
|
|
||
|
cat > "$table"
|
||
|
|
||
|
sed -i "
|
||
|
/TABLESTART/,/TABLEEND/ {
|
||
|
/TABLESTART/ {
|
||
|
r $table
|
||
|
b
|
||
|
}
|
||
|
/TABLEEND/!d
|
||
|
}
|
||
|
" "$1"
|