But this above script is printing as it is not removing that descending order line , is there any other command to solve this problem this values r creating velocity so it shouldn't decrease value so i want to remove that line . i can remove manually but near 2000000 lines & more than thousand files r there
once again thanks Mr .Franklin
With the given input file I get the desired output:
hello,
how can I filter and get the latest order number (last five digits) below:
input file:
johnmm00001
maryyy00121
johnm100222
johnmm00003
maryyy00122
output file:
johnmm00003
maryyy00122
johnm100222 (6 Replies)
Dear All,
I have below attached file in which i have many nos, i want the last ascending order nos. The brief description is given below.
File
315
381
432
315
381
432
315
381
432
315
381
432
315
381
432 (6 Replies)
Hello,
I am trying to print line number/order using this command
awk '{print $0, FNR}' myfilename
11006 A41 1888
11006 A41 1888
11006 A41 1888
11006 A41 ... (2 Replies)
Hi,
I am trying to sort the following file in descending order of its fourth column.
2 1 363828 -2.423225e-03
3 1 363828 4.132763e-03
3 2 363828 8.150133e-03
4 1 363828 4.126890e-03
I use
sort -k4,4g -r input.txt > output.txt ... (1 Reply)
How do I remove maxvalue and noorder?
I've a list of files with the following similar content
Prompt Sequence SEQ_AD_ID;
CREATE SEQUENCE SEQ_AD_ID
START WITH 1
MAXVALUE 1000000000000
MINVALUE 1
NOCYCLE
CACHE 10
NOORDER;
to
Prompt Sequence SEQ_AD_ID;
CREATE... (2 Replies)
Hi,
I have a problem . I have few directories like inpTDT_1, inpTDT_2, inpTDT_3 and so on inside HOME directory . In one of my perl script (which is in my HOME), the above directories like inpTDT_1, inpTDT_2, inpTDT_3 are sorting out in an order So I wanted to sort all the inpTDT_1, inpTDT_2,... (1 Reply)
Discussion started by: venkatesh
1 Replies
LEARN ABOUT PHP
ps_makespotcolor
PS_MAKESPOTCOLOR(3) 1 PS_MAKESPOTCOLOR(3)ps_makespotcolor - Create spot colorSYNOPSIS
int ps_makespotcolor (resource $psdoc, string $name, [int $reserved])
DESCRIPTION
Creates a spot color from the current fill color. The fill color must be defined in rgb, cmyk or gray colorspace. The spot color name can
be an arbitrary name. A spot color can be set as any color with ps_setcolor(3). When the document is not printed but displayed by an post-
script viewer the given color in the specified color space is use.
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
o $name
- Name of the spot color, e.g. Pantone 5565.
RETURN VALUES
The id of the new spot color or 0 in case of an error.
EXAMPLES
Example #1
Creating and using a spot color
<?php
$ps = ps_new();
if (!ps_open_file($ps, "spotcolor.ps")) {
print "Cannot open PostScript file
";
exit;
}
ps_set_info($ps, "Creator", "spotcolor.php");
ps_set_info($ps, "Author", "Uwe Steinmann");
ps_set_info($ps, "Title", "Spot color example");
ps_begin_page($ps, 596, 842);
ps_setcolor($ps, "fill", "cmyk", 0.37, 0.0, 0.34, 0.34);
$spotcolor = ps_makespotcolor($ps, "PANTONE 5565 C", 0);
ps_setcolor($ps, "fill", "spot", $spotcolor, 0.5, 0.0, 0.0);
ps_moveto($ps, 100, 100);
ps_lineto($ps, 100, 200);
ps_lineto($ps, 200, 200);
ps_lineto($ps, 200, 100);
ps_lineto($ps, 100, 100);
ps_fill($ps);
ps_end_page($ps);
ps_delete($ps);
?>
This example creates the spot color "PANTONE 5565 C" which is a darker green (olive) and fills a rectangle with 50% intensity.
SEE ALSO ps_setcolor(3).
PHP Documentation Group PS_MAKESPOTCOLOR(3)