Hello every one, I have following data
***CAMPAIGN 1998 CONTRIBUTIONS***
---------------------------------------------------------------------------
NAME PHONE Jan | Feb | Mar | Total Donated
... (12 Replies)
hi, i have an awk script and I managed to figure out how to search the max value but Im having difficulty in searching for the min field value.
BEGIN {FS=","; max=0}
NF == 7 {if (max < $6) max = $6;}
END { print man, min}
where $6 is the column of a field separated by a comma (3 Replies)
Hi guys!
I'm new to scripting and I need to write a script in awk.
Here is example of file on which I'm working
ATOM 4688 HG1 PRO A 322 18.080 59.680 137.020 1.00 0.00
ATOM 4689 HG2 PRO A 322 18.850 61.220 137.010 1.00 0.00
ATOM 4690 CD ... (18 Replies)
Hi guys,
I already search on the forum but i can't solve this on my own.
I have a lot of files like this:
And i need to print the line with the maximum value in last column but if the value is the same (2 in this exemple for the 3 last lines) i need get the line with the minimum value in... (4 Replies)
Hi,
I have a file which looks like this:
FID IID MISS_PHENO N_MISS N_GENO F_MISS
12AB43131 12AB43131 N 17774 906341 0.01961
65HJ87451 65HJ87451 N 10149 906341 0.0112
43JJ21345 43JJ21345 N 2826 906341 0.003118I would... (11 Replies)
aaa: 3 ms
aaa: 2 ms
aaa: 5 ms
aaa: 10 ms
..........
to get the 3 2 5 10 ...'s min avg and max
something like
min: 2 ms avg: 5 ms max: 10 ms (2 Replies)
I need to find the max/min of columns 1 and 2 of a 2 column file what contains the special character ">".
I know that this will find the max value of column 1.
awk 'BEGIN {max = 0} {if ($1>max) max=$1} END {print max}' input.file
But what if I needed to ignore special characters in the... (3 Replies)
I am trying to get a simple min/max script to work with the below input. Note the special character (">") within it.
Script
awk 'BEGIN{max=0}{if(($1)>max) max=($1)}END {print max}'
awk 'BEGIN{min=0}{if(($2)<min) min=($2)}END {print min}'
Input
-122.2840 42.0009
-119.9950 ... (7 Replies)
truchet(6x) XScreenSaver manual truchet(6x)NAME
truchet - draws curved or angular Truchet patterns
SYNOPSIS
truchet [-display host:display.screen] [-foreground color] [-background color] [-window] [-root] [-mono] [-install] [-visual visual]
[-delay milliseconds] [-min-width integer] [-min-height integer] [-max-width integer] [-max-height integer] [-max-linewidth integer] [-min-
linewidth integer] [-erase] [-no-erase] [-erase-count integer] [-square] [-not-square] [-curves] [-no-curves] [-angle] [-no-angles]
[-scroll] [-scroll-overlap integer] [-anim-delay integer] [-anim-step-size integer]
[-fps]
DESCRIPTION
The truchet program draws arc and line based Truchet patterns.
OPTIONS
truchet accepts the following options:
-window Draw on a newly-created window. This is the default.
-root Draw on the root window.
-mono If on a color display, pretend we're on a monochrome display.
-install
Install a private colormap for the window.
-visual visual
Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
-delay milliseconds
How long to wait between drawing each screenful. Default is 1 seconds.
-min-width integer
The minimum width in pixels of each square. Default is 40.
-min-height integer
The minimum height in pixels of each square. Default is 40.
-max-width integer
The maximum width in pixels of each square. Default is 150.
-max-height integer
The maximum height in pixels of each square. Default is 150.
-max-linewidth integer
The maximum width of the lines used to draw. Default is 25.
-min-linewidth integer
The minimum width of the lines used to draw. Default is 2.
-erase
-no-erase
Whether to clear the screen after each screenful is drawn. Default is True (erase).
-erase-count integer
The number of screenfuls to draw before erasing. Default is 25.
-square
-not-square
Whether to force the tiles to be square. Default is True (square).
-curves
-no-curves
Whether to draw the arc based Truchet pattern. Default is True (curves).
-angles
-no-angles
Whether or not to draw the line based Truchet pattern. Default is True (angles)
-scroll Use the scroll mode. Default is False.
-scroll-overlap
The amount to scroll from one side to another. Default is 400.
-anim-delay
The time to pause between each animation step. Default is 100.
-anim-step-size
The amount of steps to skip between each animation step. Default is 3.
-fps Display the current frame rate and CPU load.
ENVIRONMENT
DISPLAY to get the default host and display number.
XENVIRONMENT
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.
SEE ALSO X(1), xscreensaver(1)COPYRIGHT
Copyright (C) 1998 by Adrian Likins.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, pro-
vided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup-
porting documentation.
AUTHOR
Adrian Likins, 1998.
X Version 11 5.15 (28-Sep-2011) truchet(6x)