in reply to Re^2: repeat data at one line and grep as pre-set format
in thread repeat data at one line and grep as pre-set format

You are right and your way is more efficient too. I wrote it with the cat file | as that is how I tested it with echo, just failed to engage my brain completely :-)

Cheers,
R.

Pereant, qui ante nos nostra dixerunt!