Skip to main content
2 of 7
deleted 51 characters in body
January
  • 2k
  • 2
  • 16
  • 14

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
January
  • 2k
  • 2
  • 16
  • 14