$ cat text first second third fourth fifth sixth seventh eighth $ cat nums 1 4 6 7 $ ed -s text < nums first fourth sixth seventh