Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

recalculate all numbers in text

16 views
Skip to first unread message

Peter A. Cejchan

unread,
Aug 29, 2012, 4:57:56 AM8/29/12
to
Hi, folks,
is this a job for 'sed':

I need to recalculate all numbers in text, simply multiplying every number by the same constant. Or is it a job for 'awk'??
Thanks, regards,

++pac

foxidrive

unread,
Aug 29, 2012, 5:42:55 AM8/29/12
to
Which OS?

A script could do that I think... windows batch math is limited to 2^31 if you use Windows.


--
Mic

foxidrive

unread,
Aug 29, 2012, 5:50:22 AM8/29/12
to
I should have said that sed doesn't do math.


--
Mic

Peter A. Cejchan

unread,
Aug 29, 2012, 9:18:44 AM8/29/12
to
Thanks, I already solved it using 'awk' with the help of net folks... I was not sure whether to use 'sed', or 'awk'.
Best regards,Peter.
0 new messages