![]() |
|
|
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 |
| extract a particular start and end pattern from a line | manish205 | Shell Programming and Scripting | 7 | 02-07-2008 06:18 AM |
| Extract Pattern Sequence | jaganadh | Shell Programming and Scripting | 5 | 12-10-2007 11:06 AM |
| Extract if pattern matches | Raynon | Shell Programming and Scripting | 20 | 10-29-2007 04:44 AM |
| Extract the Pattern | aajan | UNIX for Dummies Questions & Answers | 6 | 08-08-2007 05:47 AM |
| Please help! Sed extract a pattern | zhen | Shell Programming and Scripting | 11 | 09-18-2006 01:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Quote:
In fact , I don't want to print the line 11 . I need to search for a specific pattern then print the line NR-11 . I hope my explanation is better . Thanks. BR |
|
||||
|
I want this
I a file with lines containing 3 columns each, If column 3 of a line is zero, then substract the second entry of present column from the second entry of the prvious column. e.g. 28 -4.8743 2 29 -4.8726 2 30 -4.7833 2 31 -4.7721 2 32 -4.7690 2 33 -4.6266 2 34 -4.6203 2 35 -3.8990 1 36 -3.2009 0 37 -2.9944 0 38 -2.9934 0 39 -2.8856 0 40 -2.8820 0 then it should subtract -3.2009 from -3.8990 and give me the answer. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|