Hi,
I have a file a.txt and it has values in it
Eg :-
I need to read through the file and find the number that is the greatest in them all.
Can any one assit me on this.
Thanks (30 Replies)
Hi All,
My file looks some thing like this,
File 1: -
A 10
B 30
C 5
D 25
E 72
F 23
now my requirement is to find the line with highest number in it, i;e the result should be
E 72
Thanks in Advance (1 Reply)
Hello
Wondering if anybody may be able to advise on how I can filter the contents of the following file:
<object_name>-<version> <Instance>
GM_GUI_code.fmb-4 1
GM_GUI_code.fmb-5 1
GM_GUI_code.fmx-4 ... (7 Replies)
Hello
Wondering if anybody can advise me how I can sort the below file so it only displays lines with the latest versions of an object? As you'll see some of the scripts listed in my file have more than one version number (version number is after the file extension). E.g. cdm_bri.pkb has... (2 Replies)
i have a problem i am working on and am completely new to bash commands. I writing a script to read another file and output the max and Min number in the script. I must use variables to output the max and min numbers. grades = file with numbers in them.
This is what i got so far. Thank You in... (3 Replies)
Hello all, I am new to this and need some help or maybe steer me to the right direction!
I wrote a script to get the highest number and prints it on the screen, the script basically asks the user to input numbers, and then prints the highest number! very simple
it works like this
$sh max.sh... (8 Replies)
Just want to say this is great resources for all thing Unix!!
cat tmp.txt
A 3
C 19
A 2
B 5
A 1
A 0
C 13
B 9
C 1
Desired output:
A 3
B 9
C 19
The following work but I am wondering if there is a better way to do it: (4 Replies)
Hi,
I have a huge text file with filenames which which looks like the following ie uniquenumber_version_filename:
e.g.
1234_1_xxxx
1234_2_vfvfdbb
343333_1_vfvfdvd
2222222_1_ggggg
55555_1_xxxxxx
55555_2_vrbgbgg
55555_3_grgrbr
What I need to do is examine the file, look for... (4 Replies)
Hi Guys,
I am looking for a way to sort the output below from the "Inuse" count from Highest to Lowest. Is it possible?
Thanks in advance.
user1 0.12 0.06 0 0.12
User Inuse Pin Pgsp Virtual
Unit:... (4 Replies)
Discussion started by: jaapar
4 Replies
LEARN ABOUT PLAN9
ppmcolors
ppmcolors(1) General Commands Manual ppmcolors(1)NAME
ppmcolors - generate a color map of all colors of a certain maxval
SYNOPSIS
ppmcolors [-maxval=maxval]
All options can be abbreviated to their shortest unique prefix. You may use two hyphens instead of one to designate an option. You may
use either white space or an equals sign between an option name and its value.
DESCRIPTION
ppmcolors generates a PPM color map containing all the colors representable with a certain maxval.
A PPM color map is a regular PPM image that is used by some programs to define a set of colors.
ppmcolors generates a one row PPM image that contains one pixel of each color representable by the maxval you choose. The maxval of the
PPM image is that maxval. Note that you can change the maxval of the color map by running the output of ppmcolors through pnmdepth. As
long as the new maxval is a multiple of the original, the resulting set of colors will be identical. If the new maxval is not a multiple,
the resulting set of colors will be slightly different.
When you select a maxval of 5 (which is the default), you get a color map of the set of "web safe" colors as defined by Netscape. Most web
browsers guarantee that they can produce at least these 216 colors (215 plus black).
pnmcolormap is another program to generate a color map. It chooses a set of colors designed to represent the colors in a specified image
(or simply the set of all the colors in that image, if you choose).
pgmramp performs a similar function for PGM images.
OPTIONS -maxval=maxval
This is the maxval of the generated color map. Default is 5.
SEE ALSO pnmdepth(1), pnmcolormap(1), ppmcie(1), ppmrainbow(1), pgmramp(1), ppm(5)AUTHOR
By Bryan Henderson, December 2001.
20 December 2001 ppmcolors(1)