seq 1 4 > file;busybox ed file 2i test . w q Expect: Second line to be replaced with "test" What happens: First line is replaced with "test" If i use 'seq 1 6' or more instead it seems to work as expected, although I havent tested much.