remove useless uses of cat

Using cat in this way causes all input to go through a kernel buffer,
i.e. it gets copied around twice too often.