04-24-2009
What if i have some similar numbers?
for example
20
35
100
70
30
100
if i sort these numbers i wll have 100 two times at the top.what if i want to get both '100s'?
//suppose i do this to many files so i dont know what the input is,i just want to get the biggest number(s) in each file...
Last edited by bashuser2; 04-24-2009 at 12:41 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
OS - Sun OS7
What sources can I go to to figure out what is the maximun number of processes for OS7 with 2GB of memory.
I believe it is 64K processes, but this number reflects resources being swaped.
Any help is appreciated
SmartJuniorUnix (1 Reply)
Discussion started by: SmartJuniorUnix
1 Replies
2. Shell Programming and Scripting
Hi All,
what is the maximum limit for the command line arguments in korn shell.
Regards,
Raju (4 Replies)
Discussion started by: rajus19
4 Replies
3. Solaris
Hi,
Anyone can help ?
I have 21,000 sub-folder under the main folder .
Now are having some problem writing .
Is there a max no. of sub-folder can be create under Solaris .
If yes ,what is the max no. , can it be configure to increase ?
Thanks (4 Replies)
Discussion started by: civic2005
4 Replies
4. Solaris
Hi,
Is there a way to find out the maximum possible number of IOs on a Solaris Servers.
I'm using SUN Fire V240 (2 Replies)
Discussion started by: justsam
2 Replies
5. Linux
Hello all,
I'm looking to implement a Linux server that will host up to 60 simultaneous X sessions, all running firefox to a secured web interface.
Does anyone have any experience sizing a system like this?
The reason for the setup isn't as important (Since I really don't understand why... (1 Reply)
Discussion started by: ZekesGarage
1 Replies
6. Shell Programming and Scripting
Is there a simple way of calculating the max number in a set of variables, so
a=1
b=3
c=6
d=30
something that says
e=max($a, $b, $c, $d)
I've found a way to do it using:
a="1"
b="3"
c="5"
d="50"
if ;
then
t=$a
else (3 Replies)
Discussion started by: unclecameron
3 Replies
7. Shell Programming and Scripting
Hi Folks.Just out of interest does anyone know if their is a maximum number of variables that korn shell supports and if so how do I query what it is?Cheers (1 Reply)
Discussion started by: steadyonabix
1 Replies
8. Shell Programming and Scripting
Anyone knows what is the max limit of number of environment variables in Csh? I have a script that when run causes the shell to stop responding to any command like:
ls
/bin/ls: Argument list too long.
And I guess the reason is I passed the max limit for number of environment variables... (1 Reply)
Discussion started by: mohy
1 Replies
9. Solaris
Hi,
I was wondering, whether there is a limit regarding the max number of nfs mounts in
Oracle Solaris 10 (newest update).
The data center plans to migrate from a fibre channel based storage environment (hitachi) to a nfs based storage environment (netapp). Regarding the Solaris 10 database... (1 Reply)
Discussion started by: schms
1 Replies
10. Shell Programming and Scripting
Is it possible to print max number of 2 columns - awk
note: print max if the integer is positive and print min if the integer is negative
input
a 1 2
b 3 4
c 5 1
d -3 -5
d -5 -3
output
a 2
b 4
c 5
d -5
d -5 (4 Replies)
Discussion started by: quincyjones
4 Replies
LEARN ABOUT PHP
imagestringup
IMAGESTRINGUP(3) 1 IMAGESTRINGUP(3)
imagestringup - Draw a string vertically
SYNOPSIS
bool imagestringup (resource $image, int $font, int $x, int $y, string $string, int $color)
DESCRIPTION
Draws a $string vertically at the given coordinates.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
o $
font -Can be 1, 2, 3, 4, 5 for built-in fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or any of
your own font identifiers registered with imageloadfont(3).
o $x
- x-coordinate of the bottom left corner.
o $y
- y-coordinate of the bottom left corner.
o $string
- The string to be written.
o $color
- A color identifier created with imagecolorallocate(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
imagestringup(3) example
<?php
// create a 100*100 image
$im = imagecreatetruecolor(100, 100);
// Write the text
$textcolor = imagecolorallocate($im, 0xFF, 0xFF, 0xFF);
imagestringup($im, 3, 40, 80, 'gd library', $textcolor);
// Save the image
imagepng($im, './stringup.png');
imagedestroy($im);
?>
The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : imagestringup()
SEE ALSO
imageloadfont(3).
PHP Documentation Group IMAGESTRINGUP(3)