![]() |
|
|
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 |
| how i prepare a c++ code(c code) for implementing my own protocol format | amitpansuria | High Level Programming | 1 | 09-07-2007 12:09 AM |
| How to solve this | akashag22 | Shell Programming and Scripting | 3 | 07-21-2007 06:54 AM |
| Can AWK solve it ??? | emon | Shell Programming and Scripting | 1 | 02-23-2005 01:07 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
can you solve this code :
I have the below fixed file ..... and the sample code to convert csv ...last week it was working good ....to day i face error ....can you solve ...
Note : Iam passing ending positions as variables .... 4 ,5,15 etc.... source.txt : E116015/29/19930E001E000 E122012/23/19940E001E003 E104012/04/19940E001E003 sed -e 's/./&,/4' 's/./&,/5' 's/./&,/15' 's/./&,/16' 's/./&,/20' 's/./&,/24' source.txt > delimited.csv delimited.csv : E116,0,15/29/1993,0,E001,E000 E122,0,12/23/1994,0,E001,E003 E104,0,12/04/1994,0,E001,E003 |
|
||||
|
sorry
sorry ,
I got the following error : sed: can't read s/./&,/5: No such file or directory sed: can't read s/./&,/15: No such file or directory sed: can't read s/./&,/16: No such file or directory sed: can't read s/./&,/20: No such file or directory sed: can't read s/./&,/24: No such file or directory |
|
||||
|
Double posting questions is against the:
Simple rules of the UNIX.COM forums: Please continu here: how to convert Fixed length file to delimited file. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|