![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| combining lines in files | sme | Shell Programming and Scripting | 14 | 10-17-2008 03:47 AM |
| combining two lines in Linux script | yshahiac | Linux | 4 | 08-23-2008 11:59 PM |
| help combining lines in awk | blueheed | Shell Programming and Scripting | 2 | 03-23-2006 06:26 PM |
| Appending line/lines with sed | nir_s | Shell Programming and Scripting | 28 | 07-24-2005 02:36 AM |
| Combining multiple lines | DUST | Shell Programming and Scripting | 4 | 07-15-2005 10:57 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
need help appending lines/combining lines within a file...
Is there a way to combine two lines onto a single line...append the following line onto the previous line?
I have the following file that contains some blank lines and some lines I would like to append to the previous line... current file: checking dsk c19t2d6 checking dsk c19t2d7 checking dsk c19t3d0 checking dsk c21t0d4 /dev/dsk/c21t0d4 checking dsk c21t0d5 /dev/dsk/c21t0d5 checking dsk c21t0d6 /dev/dsk/c21t0d6 checking dsk c21t0d7 /dev/dsk/c21t0d7 looking for something like this: checking dsk c19t2d6 checking dsk c19t2d7 checking dsk c19t3d0 checking dsk c21t0d4 /dev/dsk/c21t0d4 checking dsk c21t0d5/dev/dsk/c21t0d5 checking dsk c21t0d6/dev/dsk/c21t0d6 checking dsk c21t0d7/dev/dsk/c21t0d7 any assistance would be appreciated...thanks and happy new year, manny |
|
||||
|
checking c12t15d0 /dev/dsk/c12t15d0
checking c12t15d1 /dev/dsk/c12t15d1 checking c12t15d2 /dev/dsk/c12t15d2 checking c12t15d3 /dev/dsk/c12t15d3 checking c12t15d4 /dev/dsk/c12t15d4 checking c12t15d5 /dev/dsk/c12t15d5 checking c12t15d6 checking c12t15d7 checking c13t0d0 checking c13t0d1 checking c13t0d2 checking c13t0d3 checking c13t0d4 checking c13t0d5 checking c13t0d6 checking c13t0d7 checking c13t1d0 checking c13t1d1 checking c13t1d2 checking c13t1d3 checking c13t1d4 checking c13t1d5 checking c13t1d6 checking c13t1d7 worked like a charm...thank you ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|