What I'm trying to accomplish. I receive a Header and Detail file for daily processing. The detail file comes first which holds data, the header is a receipt of the detail file and has the detail files record count. Before processing the detail file I would like to put a wrapper around another script that does a validation check to make sure the wc -l for the detail is the same as the count in the header.
Questions: Is the exising code the best approach? If they match I need to continue on and execute another script.
I have an Awk string-compare problem and have searched the internet and forums for a solution i could use but cannot find a solution i understand to make work with my particular problem:
I need to compare (field1 field2 field3 of File1) against (field1 of File2) and if they match print out... (6 Replies)
I'm trying to compare two files using AWK, where if field2 of both files match, replace field1 of file1 with field1 of file2 and if there is no match just print the line of file1.
file1.txt (has empty first field)
:ABBATOM:B:H:1992
:ABBA TROJAN:B:H:1993
:ABBES FIRST HOPE:B:M:1997
:ABBEYS... (4 Replies)
Hello,
I have two files that I need to compare and print out the line from file2 that has the first 6 fields matching the first 6 fields in file1. Complicating this are the following restrictions
1. file1 is only a few thousand lines at most and file2 is greater than 2 million
2. I need to... (7 Replies)
Hi,
I have created one shell script in which it will count number of "~" tilda charactors from each line of the file.But the problem is that i need to count each line count individually, that means. if line one contains 14 "~"s and line two contains 15 "~"s then it should give an error msg.each... (3 Replies)
I have very limited coding skills but I'm wondering if someone could help me with this. There are many threads about matching strings in two files, but I have no idea how to add a column from one file to another based on a matching string.
I'm looking to match column1 in file1 to the number... (3 Replies)
Hi guys!
I'm trying to write something to find each line of file1 into file2, if line is found return YES, if not found return NO. The result can be written to a new file.
Can you please help me out?
FILE1 INPUT:
WATER
CAR
SNAKE
(in reality this file has about 600 lines each with a... (2 Replies)
Hi There!
I am saving the file count of all files in a directory to an output file using:
wc -l * > FileCount.txt
I get:
114 G4SXORD
3 G4SXORH
0 G4SXORP
117 total
But this count includes header and footer. I want to subtract 2 from the count and get
... (7 Replies)
Hello,
I have two files file 1 and file 2 each having result of a query on certain database tables and need to compare for Col1 in file1 with Col3 in file2, compare Col2 with Col4 and output the value of Col1 from File1 which is a) not present in Col3 of File2 b) value of Col2 is different from... (2 Replies)
hi.. i am using solaris system and ksh and using nawk to get records of file1 not in file2(not line by line comparison). code i am using is nawk 'NR==FNR{a++} !a {print"line:" FNR"->" $0} ' file2 file1
same command with awk runs perfectly on darwin kernel(mac) but in solaris it does line by... (2 Replies)
I want to print only the lines in file2 that match file1, in the same order as they appear in file 1
file1
file2
desired output:
I'm getting the lines to match
awk 'FNR==NR {a++}; FNR!=NR && a' file1 file2
but they are in sorted order, which is not what I want:
Can anyone... (4 Replies)
Discussion started by: pathunkathunk
4 Replies
LEARN ABOUT DEBIAN
gldepthrangearray
GLDEPTHRANGEARRAY(3G) [FIXME: manual] GLDEPTHRANGEARRAY(3G)NAME
glDepthRangeArray - specify mapping of depth values from normalized device coordinates to window coordinates for a specified set of
viewports
C SPECIFICATION
void glDepthRangeArrayv(GLuint first, GLsizei count, const GLdouble *v);
PARAMETERS
first
Specifies the index of the first viewport whose depth range to update.
count
Specifies the number of viewports whose depth range to update.
v
Specifies the address of an array containing the near and far values for the depth range of each modified viewport.
DESCRIPTION
After clipping and division by w, depth coordinates range from -1 to 1, corresponding to the near and far clipping planes. Each viewport
has an independent depth range specified as a linear mapping of the normalized depth coordinates in this range to window depth coordinates.
Regardless of the actual depth buffer implementation, window coordinate depth values are treated as though they range from 0 through 1
(like color components). glDepthRangeArray specifies a linear mapping of the normalized depth coordinates in this range to window depth
coordinates for each viewport in the range [first, first + count). Thus, the values accepted by glDepthRangeArray are both clamped to this
range before they are accepted.
The first parameter specifies the index of the first viewport whose depth range to modify and must be less than the value of
GL_MAX_VIEWPORTS. count specifies the number of viewports whose depth range to modify. first + count must be less than or equal to the
value of GL_MAX_VIEWPORTS. v specifies the address of an array of pairs of double precision floating point values representing the near
and far values of the depth range for each viewport, in that order.
The setting of (0,1) maps the near plane to 0 and the far plane to 1. With this mapping, the depth buffer range is fully utilized.
NOTES
It is not necessary that the near plane distance be less than the far plane distance. Reverse mappings such as near = 1, and far = 0 are
acceptable.
The type of the v parameter was changed from GLclampd to GLdouble. This change is transparent to user code and is described in detail on
the removedTypes() page.
ERRORS
GL_INVALID_VALUE is generated if first is greater than or equal to the value of GL_MAX_VIEWPORTS.
GL_INVALID_VALUE is generated if first + count is greater than or equal to the value of GL_MAX_VIEWPORTS.
ASSOCIATED GETS
glGet() with argument GL_DEPTH_RANGE
SEE ALSO
glDepthFunc(), glDepthRange(), glDepthRangeIndexed(), glPolygonOffset(), glViewportArray(), glViewport(), removedTypes()
COPYRIGHT
Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication
License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
[FIXME: source] 05/30/2012 GLDEPTHRANGEARRAY(3G)