11-18-2014
So the Min, Max and increment are all stored in the mysql table as integers, what I need to do is to great the array of values that will populate for the dropdown list. ie if Max=6, Min=0, increment=2 then I need the query to produce 0, 2, 4, 6
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Do anyone know what's the max size of array (in awk)
can be store before hit any memory issue.
Regards (3 Replies)
Discussion started by: epall
3 Replies
2. Shell Programming and Scripting
We are running a AIX 5.2 OS.
Would anyone happen to know what the max value for a process id could be?
Thanks
jerardfjay :) (0 Replies)
Discussion started by: jerardfjay
0 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to iterate a UNIX awk script that returns min/max temperature data for each day from a monthly weather data file (01_weath.dat). The temperature data is held in $5. The temps are reported each minute so each day contains 1440 temperature enteries. The below code has gotten me as far as... (5 Replies)
Discussion started by: jgourley
5 Replies
4. Shell Programming and Scripting
hi!
i have a file like the attachement.
I'd like to get for each line the min, max and average values. (there is 255 values for each line)
how can i get that ?
i try this, is it right?
BEGIN {FS = ","; OFS = ";";max=0;min=0;moy=0;total=0;freq=890}
$0 !~ /Trace1:/ {
... (1 Reply)
Discussion started by: riderman
1 Replies
5. Shell Programming and Scripting
Hi,
I have a text file containing numbers. There are up to 6 numbers per row and I need to read them, check if they are 0 and if they are not zero check if they are within a given interval (min,max). If they exceed the max or min they should be set to max or min respectively, if they are in the... (4 Replies)
Discussion started by: f_o_555
4 Replies
6. Shell Programming and Scripting
Hello Experts,
I have got a txt files which has multiple columns, I want to get the max, min and diff (max-min) for each column in the same txt file. Example:
cat file.txt
a 1 4
b 2 5
c 3 6
I want ouput like:
cat file.txt
a 1 4
b 2 5
c 3 6
Max 3 6
Min 1 4
Diff 2 2
awk 'min=="" ||... (4 Replies)
Discussion started by: dixits
4 Replies
7. Shell Programming and Scripting
Hi all,
I have a list of numbers. I need an awk command to find out the numbers of elements (number of numbers, sort to speak), the average value the min and max value. Reading the list only once, with awk.
Any ideas?
Thanks! (5 Replies)
Discussion started by: black_fender
5 Replies
8. UNIX for Dummies Questions & Answers
I need to use awk for this task !
input (fields are separated by ";"):
1%2%3%4%;AA
5%6%7%8%9;AA
1%2%3%4%5%6;BB
7%8%9%10%11%12;BBIn the 1st field there are patterns composed of numbers separated by "%".
The 2nd field define groups (here two different groups called "AA" and "BB").
Records... (8 Replies)
Discussion started by: beca123456
8 Replies
9. Shell Programming and Scripting
Gents,
I have a big file file like this.
5100010002
5100010004
5100010006
5100010008
5100010010
5100010012
5102010002
5102010004
5102010006
5102010008
5102010010
5102010012
The file is sorted and I would like to find the min and max value, taking in the consideration key1... (3 Replies)
Discussion started by: jiam912
3 Replies
10. Shell Programming and Scripting
Hi to all,
Please help on the following problem, I'm not where to begin, if awk or shell script.
I have pairs of ranges of numbers and I need to find the root or roots of ranges based on min Range and Max ranges
Example #1:
If min range is 120000 and max ranges 124999, it means that are... (5 Replies)
Discussion started by: Ophiuchus
5 Replies
LEARN ABOUT CENTOS
xvattr
XVATTR(1) User Commands XVATTR(1)
NAME
xvattr - Query/Set X11 XVideo Setting(s)
SYNOPSIS
xvattr [options...]
This program is used for getting and setting X11 Xv attributes such as XV_BRIGHTNESS, XV_CONTRAST, XV_SATURATION, XV_HUE, XV_COLORKEY, ...
For this program to work, you must have a version of X11 with the XVideo extension and a graphics card that has Xv graphics acceleration.
Note: On some cards XV_BRIGHTNESS and XV_CONTRAST are not listed among the available attributes, but they can still be set/changed.
OPTIONS
With no options, all parameters are displayed.
Long options are handled by GNU getopts and follow those rules. In particular, options that are specified with a double dash (--) rather
than a single dash (-), can be abbreviated as long as they are unique. Long parameters that need a value specified may have the parameter
and the value separated with blank space or an optional equals sign (and no intervening space).
For example the following are all equivalent:
xvattr -a XV_BRIGHTNESS xvattr --attribute XV_BRIGHTNESS xvattr --att XV_BRIGHTNESS xvattr --att=XV_BRIGHTNESS
Example:
> xvattr
Adaptor: 0
Name: Matrox G-Series Backend Scaler
Port: 46
Name: XV_COLORKEY
Flags: XvGettable XvSettable
Min value: 0
Max value: 16777215
Current value: 66046
{-a | --attribute} attribute name
Show value of attribute attribute name
Example:
> xvattr -a XV_BRIGHTNESS
XV_BRIGHTNESS = 24
{-a | --attribute} attribute name [-v | --value] value
Set attribute attribute name to value value.
Example:
> xvattr -a XV_COLORKEY -v 10
XV_COLORKEY set to 10
{-p | --port} port number
Get the attribute on the specified port. If -p is not set, the first available port is used.
Example:
> xvattr -p 66
Found Xv 2.2
Adaptor: 0
Name: SIS Video Overlay
Port: 66
Name: XV_COLORKEY
Flags: XvGettable XvSettable
Min value: 0
Max value: 16777215
Current value: 66046
Name: XV_BRIGHTNESS
Flags: XvGettable XvSettable
Min value: -128
Max value: 127
Current value: 0
Name: XV_CONTRAST
Flags: XvGettable XvSettable
Min value: 0
Max value: 255
Current value: 128
AUTHOR
Bjoern Englund. Send bug reports to "d4bjorn@dtek.chalmers.se" "rocky@panix.com" turned the README into this document.
SEE ALSO
See also xvinfo and XvQueryAdaptors, XvSetPortAttribute, and XvGetPortAttribute.
COPYRIGHT
Copyright (C) 2001-2002 Bjoern Englund
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
perl v5.16.3 2014-06-10 XVATTR(1)