![]() |
|
|
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 |
| Date Calculations | mitschcg | UNIX for Dummies Questions & Answers | 8 | 03-06-2009 04:40 AM |
| ksh, calculations using bc | cesarNZ | Shell Programming and Scripting | 2 | 12-14-2008 10:42 PM |
| how do you get input of a file to calculations | nadman123 | Shell Programming and Scripting | 6 | 04-11-2008 04:14 AM |
| Time Calculations | Nysif Steve | UNIX for Dummies Questions & Answers | 5 | 09-14-2007 09:49 AM |
| Float calculations | sharmavr | UNIX for Dummies Questions & Answers | 1 | 07-26-2006 03:18 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
calculations in awk/sed
Hi friends, I am in a little confusion. I have a comma separated file contains hugh records. say, Code:
88562848,21-JAN-08,2741079, -1188,-7433,TESTING 88558314,21-JAN-08,2741189, -1273,-7976,TESTING I want 4th and 5th field to be multiplied by 100. like, 88562848,21-JAN-08,2741079, -118800,-743300,TESTING 88558314,21-JAN-08,2741189, -127300,-797600,TESTING Is this can be done by sed? or any by other efficient way? Please suggest. Thanks in advance. Last edited by Yogesh Sawant; 03-25-2009 at 05:01 AM.. Reason: added code tags |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|