UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: insertChapter 9
The ex Editor
Next: Reference: k
 

join

[address] j[!] [count]

Place the text in the specified range on one line, with whitespace adjusted to provide two space characters after a period (.), no space characters after a ), and one space character otherwise. Add a ! to prevent whitespace adjustment.

Example

:1,5j!		Join first five lines, preserving whitespace


Previous: Reference: insertUNIX in a Nutshell: System V EditionNext: Reference: k
Reference: insertBook IndexReference: k

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System