Sponsored Content
Full Discussion: Help with awk logic
Top Forums Shell Programming and Scripting Help with awk logic Post 302318537 by pinnacle on Thursday 21st of May 2009 09:01:48 PM
Old 05-21-2009
Quote:
Originally Posted by vgersh99
'IGNORECASE' is GNUism.
Code:
nawk -F, '$2 == "" || $3 == "" || tolower($2) == "ind" || tolower($3) == "ind" ' myFile

Thanks vgersh99
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

cannot get logic for concatenation awk

Hello friends, I have a problem in printing an array.. Example if my array line contains 4 elements like following line=0002 , line=202200, line=200002, line= 300313 Now one = sprintf line line line line will concatenate my whole array to one. But I am not sure about the... (7 Replies)
Discussion started by: user_prady
7 Replies

2. Shell Programming and Scripting

need a logic for awk programming

Hello Friends, I have a txt file like below //*Init Start Reg(read,12'h42E,16'h0000); Nop(5628.5); //*Init End //*Main Start Reg(read,12'h42E,16'h0000); Nop(5628.5); //*Main End I want to calculate the values between //* Init Start & //* Init End And //*Main Start & //*Main... (5 Replies)
Discussion started by: user_prady
5 Replies

3. Shell Programming and Scripting

need a logic to start with awk/ sh

Hi Friends, I got stuck where to start with .. I ve a input file like below. where I want to compare write data with my read data .. The problem is that the read data should be compared with the lastest write data on that address. Note- Both write data & read data are in the same... (8 Replies)
Discussion started by: user_prady
8 Replies

4. Shell Programming and Scripting

need an awk script/logic

In one data file i have values like this a b c 1 2 e f g 2 3 i j k 3 5 I need to sum up the last 2 columns and make a data file...How i can do that. a b c 1 2 e f g 2 3 i j k 3 5... (8 Replies)
Discussion started by: bobprabhu
8 Replies

5. UNIX for Dummies Questions & Answers

Need help in logic using awk command

I have task to find out the min,max, average value of each service for example i searched for " StatementService " $awk '/VST.*StatementService:/{print $3,$4,$19,$22,$25}' performance.log > smp.log $cat smp.log amexgtv VST: : StatementService:1860 StatementService:getCardReference:0... (3 Replies)
Discussion started by: senthil.ak
3 Replies

6. UNIX for Dummies Questions & Answers

awk logic and math help

Hi, My file has 2 fields and millions of lines. variableStep chrom=Uextra span=25 201 0.5952 226 0.330693 251 0.121004 276 0.0736858 301 0.0646982 326 0.0736858 401 0.2952 426 0.230693 451 0.221004 476 0.2736858 Each field either has a... (6 Replies)
Discussion started by: wyarosh
6 Replies

7. Shell Programming and Scripting

How to use this logic with awk?

Hi friends, I am having 2 files, I just want to compare 2 files each containing 2 columns 1st column is lat, and 2nd column is long, if anyone can understand below logic please help me in writing script with awk.. here each field of file2 needs to be compared with std_file main counter=0... (1 Reply)
Discussion started by: Akshay Hegde
1 Replies

8. Shell Programming and Scripting

awk logic

I am trying to check my logic on a long awk i'm using. I have about 30 checks that I built into an awk and I "believe" I did this right, but I could be wrong. awk -F\| ' $9 !~ /\/*{1,}*/ $9 ~ /\(-{4}, {2,3}/ $9 ~ /\({6}, {2,3}\)/ $9 ~ /\(\+{5}, {2,3}\)/ $9 ~ /\(\+\+{4}, {2,3}\)/ $9 ~... (8 Replies)
Discussion started by: dagamier
8 Replies
DTK_GET_COLOR(3)						Draw Toolkit manual						  DTK_GET_COLOR(3)

NAME
dtk_get_color - provides predefined set of colors SYNOPSIS
#include <dtk_colors.h> const float* dtk_get_color(unsigned int ind); DESCRIPTION
dtk_get_color() returns the ind-th color in a predefined palette of colors. The returned value in a pointer to a array of 4 float repre- senting an RGBA color. For more convenient usage, prefer the following macros that call dtk_get_color() with the correct argument: dtk_white dtk_black dtk_yellow dtk_orange dtk_blue dtk_green dtk_red dtk_magenta dtk_cyan dtk_butter_light dtk_butter_med dtk_butter_dark dtk_orange_light dtk_orange_med dtk_orange_dark dtk_chocolate_light dtk_chocolate_med dtk_chocolate_dark dtk_chameleon_light dtk_chameleon_med dtk_chameleon_dark dtk_skyblue_light dtk_skyblue_med dtk_skyblue_dark dtk_plum_light dtk_plum_med dtk_plum_dark dtk_scarletred_light dtk_scarletred_med dtk_scarletred_dark dtk_aluminium_light dtk_aluminium_med dtk_aluminium_dark dtk_aluminium2_light dtk_aluminium2_med dtk_aluminium2_dark RETURN VALUE
The pointer to the RGBA value of the color if ndP refers to correct value, NULL otherwise. EPFL
2010 DTK_GET_COLOR(3)
All times are GMT -4. The time now is 10:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy