Pair lines with sed