Simply use paste:
cat file.in | paste - - -d, > file.out
The sed command replaces the numbers and dots at the beginning of the line. Alternatively, do
cat file.in | sed "N;s/\n/,/" > file.out
Simply use paste:
cat file.in | paste - - -d, > file.out
The sed command replaces the numbers and dots at the beginning of the line. Alternatively, do
cat file.in | sed "N;s/\n/,/" > file.out