It is Busybox sed
try:
Code:
busybox sed '/WORD1 a /!d;s//&\n/;s/.*\n//;:a;/WORD2/bb;$!{n;ba};:b;s//\n&/;P;D' inputfile.txt > output.txt
Some of the people here set up a chroot, that has **only** the busybox utilities in it.
The same **version** of busybox as used on the <pick model here> kindle.