![]() |
|
|
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 |
| Parsing of file for Report Generation (String parsing and splitting) | umar.shaikh | Shell Programming and Scripting | 8 | 03-02-2009 01:38 AM |
| Cat of rows | kalius88 | Shell Programming and Scripting | 5 | 01-18-2009 02:23 PM |
| Perl parsing compared to Ksh parsing | popeye | Shell Programming and Scripting | 1 | 08-06-2008 11:46 PM |
| Parsing String, Search then display rows | buddyme | UNIX for Advanced & Expert Users | 9 | 04-27-2008 05:43 AM |
| Cut rows | obedkhan | HP-UX | 2 | 08-23-2006 10:36 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
parsing rows
Hi, I have a file that looks like this (tab seperated): Code:
Barry -3 -4 -5 -10 -4 6 -8 20 -6 NaN NaN NaN Brend -2 4 -3 -7 -3 8 -9 -10 -6 NaN NaN NaN NaN NaN Harry -10 -9 -40 6 -7 3 -7 -2 -5 NaN NaN NaN NaN NaN NaN NaN I want to print the first column (name) then print the column where theres value equal to or greatr than 0 (along with its position where the counts start from right to left AND also could how many NaN's there are per row. so the output would look like this name position|value #of NaN's Code:
Barry 4|6 2|20 3 Brend 7|4 4|8 5 Harry 5|6 7|3 7 hope i was clear Gisele Last edited by gisele_l; 4 Weeks Ago at 05:03 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|