This is a discussion on How can I awk, grep, sed, etc. the real and Im parts of a complex number?!? within the Shell scripting forums, part of the Development/Scripting category; I have a file of complex numbers written in their real+imaginary parts but without spaces and of different length and ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
I have a file of complex numbers written in their real+imaginary parts but without spaces and of different length and with or without exponentials, such as:
0.4672547e-7+.95475538e-3i .4574785e-1+0.274636i 1.58365834-.5982347e-2i ...... I would like to separate the above into real an imaginary parts as follows: 0.4672547e-7 .95475538e-3 .4574785e-1 0.274636 1.58365834 -.5982347e-2 I tried out built-in functions for string manipulation like awk, sed, grep, etc. but could not find a way to do that. Can anyone help? Thanks in advance. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Real Interview Questions | Ashish Pathak | The Hangout | 14 | 06-26-2008 12:32 PM |
| Grep ip address in Linux or UNIX | sweta | Getting started tutorials | 0 | 07-27-2007 06:47 AM |
| Use float real numbers in a shell script | hao | Shell scripting | 1 | 03-16-2007 01:35 AM |
| Grep and remove files | Linux software | 1 | 01-05-2006 06:25 PM | |
| why real player wont play | kavi | Linux software | 1 | 11-04-2005 11:04 AM |