![]() |
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 |
| Urgent Need Help! Merging lines in .txt file | awknerd | Shell Programming and Scripting | 12 | 07-06-2008 03:04 AM |
| 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 two lines in a file | thaduka | UNIX for Dummies Questions & Answers | 6 | 07-11-2007 10:27 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 lines in a file
Hi,
I want to merge the lines starting with a comma symbol with the previous line of the file. Input : cat file.txt name1,name2 ,name3,name4 emp1,emp2,emp3 ,emp4 ,emp5 user1,user2 ,user3 Output name1,name2,name3,name4 emp1,emp2,emp3,emp4,emp5 user1,user2,user3 IS there any command in unix to do this conversion for the entire file? Mohan |
| Bookmarks |
| Tags |
| solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|