How do I join two lines in Linux?

How do I join two lines in Linux?
Answer
Simplest way is here:
  1. Remove even lines and write it in some temp file 1.
  2. Remove odd lines and write it in some temp file 2.
  3. Combine two files in one by using paste command with -d (means delete space)
 

Tìm kiếm

Back
Top