How I would do it:
$ ex - -c '%j|wq' file'
If you want to join a specific range of lines, replace the '%' with 'startline-number,endline-number'
__________________
My Journal
Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
|