I have more than 1000 lines in a file. The file starts as follows (line numbers added):
1. Station Name 2. Station Code 3. A N DEV NAGAR 4. ACND 5. ABHAIPUR 6. AHA 7. ABOHAR 8. ABS 9. ABU ROAD 10. ABR
I need to convert this to a file, with comma separated entries by joining every two lines. The final data should look like
Station Name,Station Code A N DEV NAGAR,ACND ABHAIPUR,AHA ABOHAR,ABS ABU ROAD,ABR ...
What I was trying was - trying to write a shell script and then
echo them with comma in between. But I guess a simpler effective one-liner would do the job here may be in