How do you join two lines in Unix?

Thảo Justin

New member
How do you join two lines in Unix?
Answer
The traditional way of using paste command with “
-s” option
. “-d” in paste can take multiple delimiters. The delimiters specified here are comma and a newline character. This means while joining the first and second line use comma, and the second and third line by a newline character.
 

Tìm kiếm

Back
Top