![]() |
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 information from a comma delimited file | vzismann | UNIX for Dummies Questions & Answers | 1 | 08-06-2007 06:20 PM |
| Parsing comma delimited text file | chengwei | Shell Programming and Scripting | 5 | 02-23-2007 05:38 AM |
| Loading a comma Delimited file into an Array | grandtheftander | UNIX for Dummies Questions & Answers | 2 | 07-26-2006 01:19 PM |
| Comma Delimited file | dbrundrett | Shell Programming and Scripting | 2 | 04-05-2004 10:50 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||||
|
Hi,
In the below code, the integers are seperated by tab and not multiple spaces. The same way in the sed command you should give a tab and not multiple spaces. I think problem occurs when you copy the below contents and run. Don't copy the contents, form the data file of your own and run the sed command. Let me know if you still face any problem Code:
/export/home/test/mona>cat tab_del.dat 1press the tab key here2 3 4 5 6 7 8 9 10 /export/home/test/mona>sed 's/ /,/g' tab_del.dat 1,2,3,4,5 6,7,8,9,10 |
|
||||
|
Vino..No Luck..
Let me tell u my requirement.. I have a file dmlog.txt with data like this LOAD_STAGE STAGE_LOAD COMPLETE U0 10-OCT-05 LOAD_STAGE_A D_CA_PRODUCT COMPLETE U0 10-OCT-05 LOAD_STAGE_B D_CB_PRODUCT COMPLETE U0 10-OCT-05 Now i need to convert it to LOAD_STAGE,STAGE_LOAD,COMPLETE,U0,10-OCT-05 LOAD_STAGE_A,D_CA_PRODUCT,COMPLETE,U0,10-OCT-05 LOAD_STAGE_B,D_CB_PRODUCT,COMPLETE,U0,10-OCT-05 Can u explain me on how to proceed with this Example. |
| Sponsored Links | ||
|
|