![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need for loop to include fields as one line | prkfriryce | Shell Programming and Scripting | 8 | 03-23-2007 09:49 AM |
| fill a NIL into the blank field | happyv | Shell Programming and Scripting | 8 | 03-23-2007 01:49 AM |
| field separator as regexp | Abhishek Ghose | Shell Programming and Scripting | 2 | 02-15-2006 05:49 PM |
| awk: How to check if field is blank? | yongho | Shell Programming and Scripting | 7 | 06-09-2005 08:35 AM |
| How do I specify tab as field separator for sort? | SSteve | UNIX for Dummies Questions & Answers | 8 | 04-26-2005 01:39 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#15
|
||||
|
||||
|
Perderabo's solution is a nice hack.
Just one question on that. Wouldnt the column number change if num1a and num1b are different in length ? Thanks, Vino |
| Forum Sponsor | ||
|
|
|
#16
|
||||
|
||||
|
Quote:
|
|
#17
|
||||
|
||||
|
I think the only constant is the number of fields - the width may vary from line to line.
This is just an assumption - I've been proven wrong before. Need OPs clarification. Last edited by vgersh99; 07-12-2005 at 10:18 AM. |
|
#18
|
||||
|
||||
|
Perderabo,
That is true, indeed. And like vgersh99 said, the OP has to step in. Cheers' Vino |
|
#19
|
|||
|
|||
|
Hi,
Thanks all for the helpful solutions. The fields in each line are all starting in the same columns but they are of different lengths. for example (ccc is the field length and bbb is the blank space), cbbbbccccbcccccccbbccccccc bbbbbcccbbccccbbbbbcc ccccbccccbcccccccbbccc ccbbbbbbbbbbbbbbbbbc i hope the alignment is ok after i posted it. the fields in each line start at the same column. I think Perderabo's solution might solve it. Is it possible to guide me this solution with some sample codes so that I can work on it? I will try with this code and see it works on my data sets. Sorry, I've just learnt shell programming not long ago on my own so I am not so good. Thanks! Last edited by ReV; 07-13-2005 at 12:35 AM. |
|
#20
|
|||
|
|||
|
Hi,
I have gotten help from another forum and it seems to be the correct method! It shd also be similar to what is being suggested in this thread too! I am pasting the code here so that in future, if someone need the same help, he can refer to this: PHP Code:
Last edited by ReV; 07-13-2005 at 02:11 AM. |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|