Sponsored Content
Top Forums Programming Php number array from max, min, step size mysql data Post 302925680 by barrydocks on Tuesday 18th of November 2014 01:46:21 PM
Old 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

MAX SIZE ARRAY Can Hold it

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

min and max value of process id

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

Iterate a min/max awk script over time-series temperature data

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

get min, max and average value

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

Data stream between min and max

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

to find min and max value for each column!

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

Number of elements, average value, min & max from a list of numbers using awk

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

Integrate MIN and MAX in a string

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

Get min and max value in column

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

Print root number between min and max ranges

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
limits(5)							File Formats Manual							 limits(5)

NAME
limits - implementation-specific constants SYNOPSIS
DESCRIPTION
The following symbols are defined in and are used throughout the descriptive text of this manual. The column headed HP-UX Value lists the values that application writers should assume for portability across all HP-UX systems. Symbols after values are interpreted as follows: Actual limit might be greater than specified value on certain HP-UX systems. Actual limit might be greater than value specified in on certain HP-UX systems. Actual limit might be less than the specified value on certain HP-UX systems. Actual limit is always equal to the specified value and does not vary across HP-UX systems. The name of this limit is defined if the preprocessor macro is defined, either by the compilation flag or by a directive in the source before is included in the source. The value defined for this limit might not be a compile-time constant. The value defined always evaluates to an integer expression at run time. Some of these limits vary with system configuration, and can be determined dynamically by using sysconf(2). Others can vary according to file system or device associated with a specific file, and can be determined with pathconf(2). Others are obsolescent because they are redundant with other limits or not useful in portable applications. They are provided only for importability of applications from other systems, to support applications that comply with the and for backward compatibility with earlier versions of HP-UX. The flag should not be defined in new applications. By including the file in the compilation an application can test the appropriate limits to determine whether it can operate on a particular system, or it might even alter its behavior to match the system to increase its portability across a varying range of limit settings and systems. Constant Description HP-UX Value -------------------------------------------------------------------- ARG_MAX Max length of arguments to 5120 +* exec(2) in bytes, including environment data CHAR_BIT Number of bits in a 8 = CHAR_MAX Max integer value of a 127 = CHAR_MIN Min integer value of a -128 = CHILD_MAX Max number of simultaneous 25 +-* processes per user ID CLK_TCK Number of clock ticks per 50 +# second DBL_DIG Digits of precision of a 15 + DBL_MAX Max positive value of a 1.7976931348623157e+308 + DBL_MIN Min positive value of a 4.94065645841246544e-324 - FCHR_MAX Max file offset in bytes INT_MAX +-* FLT_DIG Digits of precision of a 6 + FLT_MAX Max positive value of a 3.40282346638528860e+38 + FLT_MIN Min positive value of a 1.40129846432481707e-45 - INT_MAX Max decimal value of an 2147483647 + INT_MIN Min decimal value of an -2147483648 - LINE_MAX Max number of characters in 2048 = a single line LINK_MAX Max number of links to a 32767 +* single file LOCK_MAX Max number of entries in 32 +-* system lock table LONG_BIT Number of bits in a 32 + LONG_MAX Max decimal value of a 2147483647 + LONG_MIN Min decimal value of a -2147483648 - MAX_CANON Max number of bytes in ter- 512 +* minal canonical input line MAX_CHAR Max number of bytes in ter- MAX_INPUT =* minal input queue MAX_INPUT Max number of bytes in ter- 512 +* minal input queue NAME_MAX Max number of bytes in a 14 +* path name component NL_ARGMAX Max value of "digits" in 9 = calls to the NLS printf(3S) and scanf(3S) functions NL_MSGMAX Max message number in an NLS 32767 + message catalog NL_SETMAX Max set number in an NLS 255 + message catalog NL_TEXTMAX Max number of bytes in an 8192 + NLS message string NGROUPS_MAX Max number of supplementary 20 ++ groups per process OPEN_MAX Max number of files a 60 +* process can have open PASS_MAX Max number of chars in a 8 + password PATH_MAX Max number of characters in 1023 +* a path name excluding the null terminator PID_MAX Max value for a process ID 30000 + PIPE_BUF Max number of bytes atomic 8192 +* in write to a pipe PIPE_MAX Max number of bytes writable INT_MAX + to a pipe in one write PROC_MAX Max number of simultaneous 84 +-* processes on system SCHAR_MAX Max integer value of a 127 = SCHAR_MIN Min integer value of a -128 = SHRT_MAX Max decimal value of a 32767 + SHRT_MIN Min decimal value of a -32768 - STD_BLK Number of bytes in a physi- 512 + cal I/O block SYSPID_MAX Max process ID of system 4 +-* processes SYS_NMLN Length of strings returned 8 +* by uname(2) SYS_OPEN Max number of files open on 120 +-* system TMP_MAX Max number of unique names 17576 + generated by tmpnam(3S) UCHAR_MAX Max integer value of an 255 = UID_MAX Smallest unattainable value 2147483647 + for a user or group ID UINT_MAX Max decimal value of an 4294967295 + ULONG_MAX Max decimal value of an 4294967295 + USHRT_MAX Max decimal value of an 65535 + USI_MAX Max decimal value of an UINT_MAX =* WORD_BIT Number of bits in a "word" 32 + EXAMPLES
has an HP-UX value of which means that on all HP-UX systems the smallest unattainable value for a user or group ID is at least 2147483647. A particular system might be capable of supporting more than 2147483647 user or group IDs, in which case its file sets to a higher value; however, any application assuming such a higher value is not guaranteed to be portable to all HP-UX systems. has an HP-UX value of which means that on all HP-UX systems the smallest maximum number of supplementary groups per process is at least 20. A particular system might be capable of supporting more than 20 supplementary groups per process, in which case will return a larger value than that specified in however, any application assuming such a higher value is not guaranteed to be portable to all HP-UX systems. AUTHOR
limits was developed by HP. SEE ALSO
exec(2), fcntl(2), fork(2), getgroups(2), link(2), lockf(2), open(2), pathconf(2), sysconf(2), uname(2), write(2), printf(3S), scanf(3S), tmpnam(3S), passwd(4), values(5), termio(7). STANDARDS CONFORMANCE
limits(5)
All times are GMT -4. The time now is 06:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy