blob: 3bd5607da8b641c1eedcc8e0f0b77cd1b1b4ea3f (
plain) (
blame)
1
2
3
4
5
6
7
8
|
#!/bin/sh
delim_begin="$1"
delim_end="$2"
contents_file="$3"
dest="$4"
sed -i -ne "/$delim_begin/ {p; r $contents_file" -e ":a; n; /$delim_end/ { p; b}; ba}; p" "$dest"
|