![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with arithmetic operation | emjayshaikh | Shell Programming and Scripting | 3 | 09-24-2007 12:44 AM |
| arithmetic in ksh | amon | Shell Programming and Scripting | 12 | 02-05-2007 02:43 AM |
| arithmetic syntax | paprbagprincess | UNIX for Dummies Questions & Answers | 1 | 05-11-2004 09:30 AM |
| Simple arithmetic operation | paladyn_2002 | Shell Programming and Scripting | 2 | 04-19-2004 04:09 AM |
| time arithmetic | csong2 | UNIX for Advanced & Expert Users | 2 | 11-28-2001 11:57 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
arithmetic operation on two columns
Hi, All,
I have a file, its content is as follows: 100 150 120 135 140 170 I want to insert a column, its content is determined by the difference between the two values in the same line, if the difference is less than 20, the new value is 1, otherwise is 0. after the operation, the file looks like 100 150 0 120 135 1 140 170 0 Could anybody help me out? Thanks in advance. Jenny |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|