From: rickm on
I have a file that looks lik this:

dbRestorePin _cell "datainref[10]" "datainref[10]" 1 34 0 0 35
'((-11.500 163.490) (-11.300 163.690)) _cellname
dbRestorePin _cell "datainm[3]" "datainm[3]" 1 34 0 0 35 '((-11.500
140.530) (-11.300 140.730)) _cellname
dbRestorePin _cell "datainm[7]" "datainm[7]" 1 34 0 0 35 '((-11.500
143.810) (-11.300 144.010)) _cellname
dbRestorePin _cell "resetn" "resetn" 1 34 0 0 35 '((988.300 114.290)
(988.500 114.490)) _cellname

I need to subtract 0.1 from the first group
^^^^^^^^^^^^^^

and add .1 to the second
group
^^^^^^^^^^^^^^

Any suggestions would be appreciated

Thanks

Rick
From: Ed Morton on


On 4/3/2008 5:09 PM, rickm(a)galaxy.nsc.com wrote:
> I have a file that looks lik this:
>
> dbRestorePin _cell "datainref[10]" "datainref[10]" 1 34 0 0 35
> '((-11.500 163.490) (-11.300 163.690)) _cellname
> dbRestorePin _cell "datainm[3]" "datainm[3]" 1 34 0 0 35 '((-11.500
> 140.530) (-11.300 140.730)) _cellname
> dbRestorePin _cell "datainm[7]" "datainm[7]" 1 34 0 0 35 '((-11.500
> 143.810) (-11.300 144.010)) _cellname
> dbRestorePin _cell "resetn" "resetn" 1 34 0 0 35 '((988.300 114.290)
> (988.500 114.490)) _cellname
>
> I need to subtract 0.1 from the first group
> ^^^^^^^^^^^^^^
>
> and add .1 to the second
> group
> ^^^^^^^^^^^^^^
>
> Any suggestions would be appreciated

Explain what a "group" is and show some expected output for the above input.
Also, tell us if there's line-wrapping in the above.

Ed.

From: rickm on
The formating of the original post is not right. Heres a second
try.

1) There are no wraps
2) The groups are -11.500 163.490 which are pointed out with the
^^^^^^

I have a file that looks lik this:

dbRestorePin _cell "datainref[10]" "datainref[10]" 1 34 0 0 35
'((-11.500 163.490) (-11.300 163.690)) _cellname
dbRestorePin _cell "datainm[3]" "datainm[3]" 1 34 0 0 35 '((-11.500
140.530) (-11.300 140.730)) _cellname

I need to subtract 0.1 from the first
group ^^^^^^^^^^^^^^
and add .1 to the second
group
^^^^^^^^^^^^^^

> Explain what a "group" is and show some expected output for the above input.
> Also, tell us if there's line-wrapping in the above.
>
> Ed.

From: rickm on
The formating is still wrong, hopefully this makes sense anyway.


On Apr 4, 7:21 am, ri...(a)galaxy.nsc.com wrote:
> The formating of the original post is not right. Heres a second
> try.
>
> 1) There are no wraps
> 2) The groups are -11.500 163.490 which are pointed out with the
> ^^^^^^
>
> I have a file that looks lik this:
>
> dbRestorePin _cell "datainref[10]" "datainref[10]" 1 34 0 0 35
> '((-11.500 163.490) (-11.300 163.690)) _cellname
> dbRestorePin _cell "datainm[3]" "datainm[3]" 1 34 0 0 35 '((-11.500
> 140.530) (-11.300 140.730)) _cellname
>
> I need to subtract 0.1 from the first
> group ^^^^^^^^^^^^^^
> and add .1 to the second
> group
> ^^^^^^^^^^^^^^
>
> > Explain what a "group" is and show some expected output for the above input.
> > Also, tell us if there's line-wrapping in the above.
>
> > Ed.

From: Ed Morton on
On 4/4/2008 9:25 AM, rickm(a)galaxy.nsc.com wrote:
> The formating is still wrong, hopefully this makes sense anyway.
>
>
> On Apr 4, 7:21 am, ri...(a)galaxy.nsc.com wrote:
>
>>The formating of the original post is not right. Heres a second
>>try.
>>
>>1) There are no wraps

So your input with line numbers added in front is:

1 dbRestorePin _cell "datainref[10]" "datainref[10]" 1 34 0 0 35
2 '((-11.500 163.490) (-11.300 163.690)) _cellname
3 dbRestorePin _cell "datainm[3]" "datainm[3]" 1 34 0 0 35 '((-11.500
4 140.530) (-11.300 140.730)) _cellname

Right? That seems to be 2 "records". Is each record always split over exactly 2
lines? If not how can we tell the start/end of each record (e.g. maybe they go
from "dbRestorePin" to "_cellname")?

>>2) The groups are -11.500 163.490 which are pointed out with the
>>^^^^^^

I see some "^^^^^"s but they don't seem to line up with anything.

Is it true that in this record:

dbRestorePin _cell "datainref[10]" "datainref[10]" 1 34 0 0 35
'((-11.500 163.490) (-11.300 163.690)) _cellname

the first group is "-11.500 163.490" and the second group is "-11.300 163.690"
while in the second record:

dbRestorePin _cell "datainm[3]" "datainm[3]" 1 34 0 0 35 '((-11.500
140.530) (-11.300 140.730)) _cellname

the first group is "-11.500 140.530" and the second group is "-11.300 140.730"?

>>I have a file that looks lik this:
>>
>> dbRestorePin _cell "datainref[10]" "datainref[10]" 1 34 0 0 35
>>'((-11.500 163.490) (-11.300 163.690)) _cellname
>> dbRestorePin _cell "datainm[3]" "datainm[3]" 1 34 0 0 35 '((-11.500
>>140.530) (-11.300 140.730)) _cellname
>>
>> I need to subtract 0.1 from the first
>>group ^^^^^^^^^^^^^^
>> and add .1 to the second
>>group
>>^^^^^^^^^^^^^^

How do you subtract from a group? Do you want to subtract from each number in
each group so your expected output would be:

1 dbRestorePin _cell "datainref[10]" "datainref[10]" 1 34 0 0 35
2 '((-11.600 163.390) (-11.200 163.790)) _cellname
3 dbRestorePin _cell "datainm[3]" "datainm[3]" 1 34 0 0 35 '((-11.600
4 140.430) (-11.200 140.830)) _cellname

If any of that is wrong, do what I suggested here:

>>>Explain what a "group" is and show some expected output for the above input.

Regards,

Ed.

>>>Also, tell us if there's line-wrapping in the above.
>>
>>> Ed.
>>
>