![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Merging lines using AWK | senthil_is | Shell Programming and Scripting | 6 | 03-05-2008 12:40 PM |
| Merging lines - Tuning the script | senthil_is | Shell Programming and Scripting | 3 | 03-05-2008 03:24 AM |
| Merging files with AWK filtering and counting lines | Meert | Shell Programming and Scripting | 2 | 01-28-2008 11:58 AM |
| merging two file in an ordered way | raku05 | Shell Programming and Scripting | 2 | 09-22-2005 08:57 AM |
| Merging lines into one | Foxgard | UNIX for Dummies Questions & Answers | 8 | 06-19-2005 07:36 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
merging two lines in a file
Hi All,
I want to merge two lines in a file till the end of the file. So what could be the command to get so. say file name : sample.txt contents: country=1 send apps =1 rece=2 country=2 send apps =3 rece=3 .. ... output: country=1;send apps =1 rece=2 country=2;send apps =3 rece=3 thanks Kumar |
|
||||
|
Could explain the awk line.
I'm so confused on awk and sed. Is there a good tutorial that explains what all that gibberish means? |
|
|||||
|
Quote:
country=1;send apps =1 rece=2 country=2;send apps =3 rece=3 I should have double quoted the RHS of OUT=${OUT};${line} |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|