![]() |
Hello and Welcome from 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 |
| make multiple line containing a pattern into single line | VTAWKVT | Shell Programming and Scripting | 13 | 12-04-2008 06:40 PM |
| How to get it in single line. pls help | Prat007 | Shell Programming and Scripting | 3 | 08-06-2008 03:12 AM |
| single line input to multiple line output with sed | mitch | Shell Programming and Scripting | 8 | 07-16-2008 02:57 PM |
| Multi-line output to single line | LinuxRacr | Shell Programming and Scripting | 7 | 02-26-2008 10:05 AM |
| Create two line from single line in shell | unishiva | Shell Programming and Scripting | 2 | 11-03-2007 12:28 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Display mutiple line in single line
Hi All,
I had a file called Input.txt, i need to group up in a single line as 1=ttt and the no of lines may vary bewteen the 1=ttt Code:
cat Input.txt 1=ttt,2=xxxxxx, 3=4545 44545, 4=66667 7777, 5=77723 1=ttt, 2=xxxxxx, 3=34436 66 3545, 4=66666, 5=ffffff, 6=uuuuuuu 1=ttt, 2=xxxxxx, 3=311343545, 4=66666 1=ttt, 2=xxxxxx, 5=XAXAXA, 7=FDFD O/p : 1=ttt,2=xxxxxx, 3=454544545, 4=66667 7777, 5=77723 1=ttt, 2=xxxxxx, 3=34436 663545, 4=66666, 5=ffffff, 6=uuuuuuu 1=ttt, 2=xxxxxx, 3=311343545, 4=66666 1=ttt, 2=xxxxxx, 5=XAXAXA, 7=FDFD |
| Bookmarks |
| Tags |
| nawk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|