$ cat file Text below. $ cat file0 Text to be inserted. $ ex file<<! > 0r file0|x > ! $ cat file Text to be inserted. Text below.