20071126

Convert all new lines to tab delimited using regex in vi.

1,$s/\n/\t/

For example file f.txt:

a1
a2
a3
..

will be converted to:

a1 a2 a3 ..

Post about Regular Expressions.

Δεν υπάρχουν σχόλια:

eggs.in.art (my non-technical blog)