in reply to Re^2: Piping data to vim
in thread Piping data to vim

The batch version of vi(1) is called sed(1). However perl is more powerful.