![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Merging lines using AWK | senthil_is | Shell Programming and Scripting | 6 | 03-05-2008 08:40 AM |
| Merging lines - Tuning the script | senthil_is | Shell Programming and Scripting | 3 | 03-04-2008 11:24 PM |
| Merging files with AWK filtering and counting lines | Meert | Shell Programming and Scripting | 2 | 01-28-2008 07:58 AM |
| merging two file in an ordered way | raku05 | Shell Programming and Scripting | 2 | 09-22-2005 04:57 AM |
| Merging lines into one | Foxgard | UNIX for Dummies Questions & Answers | 8 | 06-19-2005 03:36 AM |
|
|
LinkBack | Thread Tools | 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 |
| Forum Sponsor | ||
|
|
|
|||
|
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} |