12-16-2008
Slight change in the answer.
Joey/anybody,
Is there anyway to generically add this to do this indefinitely? because, you are taking 61 character from 135 and 196 columns...how do I write this for the size of the line I wouldn't know about?
Rahul.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can someone please tell me how i can increase the number of characters that can be input on the command line? (2 Replies)
Discussion started by: Scoogie
2 Replies
2. Shell Programming and Scripting
My input file is like
USER_WORK.ABC
USER_WORK.DEF
I want output file like
ABC
DEF (4 Replies)
Discussion started by: scorp_rahul23
4 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I have to configure printing format under aix 5.3,
but don t manage to change size of lines.
Thanks if you can help me :
--- Printer description :
I have a printer "pcltest" using HPJetDirect : hplj-4+ (PCL)
I have a queue "qtest" defined on printer hp@pcltest
--- Queue... (2 Replies)
Discussion started by: astjen
2 Replies
4. Shell Programming and Scripting
Source File:
abcdefghijklmnop01qrstuvwxyz
abcdefghijklmnop02qrstuvwxyz
abcdefghijklmnop03qrstuvwxyz
abcdefghijklmnop04qrstuvwxyz
abcdefghijklmnop05qrstuvwxyz
Whatever characters are in 17-18 on each line of the file, it should be concatenated to the same line at the character number... (6 Replies)
Discussion started by: tamahomekarasu
6 Replies
5. Shell Programming and Scripting
Hello. I'm making a (hopefully) simple shell script xml parser that outputs a file I can grep for information. I am writing it because I have yet to find a command line utility that can do this. If you know of one, please just stop now and tell me about it. Even better would be one I can input... (10 Replies)
Discussion started by: natedawg1013
10 Replies
6. Shell Programming and Scripting
I have a file with different record length. The file as to be converted into fixed length by appending spaces at the end of record. The length should be calculated based on the record with maximum length in the file.
If the length is less than the max length, the spaces should be appended... (4 Replies)
Discussion started by: Amrutha24
4 Replies
7. UNIX for Advanced & Expert Users
Hi ,
i have a file with data as below.This is same file. But actual file contains to many rows.
i want to search for a string "Field 039 00" and delete that line and previous 3 lines in that file.. Can some body suggested me how can i do using either sed or awk command ?
Field 004... (7 Replies)
Discussion started by: vadlamudy
7 Replies
8. Shell Programming and Scripting
Hi All,
I am trying to select the rows in a fixed width file based on values in the columns.
I want to select only the rows if column position 3-4 has the value AB
I am using cut command to get the column values. Is it possible to check if cut -c3-4 = AB is true then select only that... (2 Replies)
Discussion started by: ashok.k
2 Replies
9. Red Hat
HI,
How do we figure out if the server is half blade server or full blade server?
Anything we need to look at to know on this?
thanks in advance (9 Replies)
Discussion started by: snchaudhari2
9 Replies
10. Shell Programming and Scripting
Hi Forum.
I have the following script that splits a large fixed-width file into smaller multiple fixed-width files based on input segment type.
The main command in the script is:
awk -v search_col_pos=$search_col_pos -v search_str_len=$search_str_len -v segment_type="$segment_type"... (8 Replies)
Discussion started by: pchang
8 Replies
LEARN ABOUT XFREE86
gllinewidth
GLLINEWIDTH(3G) GLLINEWIDTH(3G)
NAME
glLineWidth - specify the width of rasterized lines
C SPECIFICATION
void glLineWidth( GLfloat width )
PARAMETERS
width Specifies the width of rasterized lines. The initial value is 1.
DESCRIPTION
glLineWidth specifies the rasterized width of both aliased and antialiased lines. Using a line width other than 1 has different effects,
depending on whether line antialiasing is enabled. To enable and disable line antialiasing, call glEnable and glDisable with argument
GL_LINE_SMOOTH. Line antialiasing is initially disabled.
If line antialiasing is disabled, the actual width is determined by rounding the supplied width to the nearest integer. (If the rounding
results in the value 0, it is as if the line width were 1.) If |/x|>=|/y|, i pixels are filled in each column that is rasterized, where
i is the rounded value of width. Otherwise, i pixels are filled in each row that is rasterized.
If antialiasing is enabled, line rasterization produces a fragment for each pixel square that intersects the region lying within the rec-
tangle having width equal to the current line width, length equal to the actual length of the line, and centered on the mathematical line
segment. The coverage value for each fragment is the window coordinate area of the intersection of the rectangular region with the corre-
sponding pixel square. This value is saved and used in the final rasterization step.
Not all widths can be supported when line antialiasing is enabled. If an unsupported width is requested, the nearest supported width is
used. Only width 1 is guaranteed to be supported; others depend on the implementation. Likewise, there is a range for aliased line widths
as well. To query the range of supported widths and the size difference between supported widths within the range, call glGet with argu-
ments GL_ALIASED_LINE_WIDTH_RANGE, GL_SMOOTH_LINE_WIDTH_RANGE, GL_SMOOTH_LINE_WIDTH_GRANULARITY.
NOTES
The line width specified by glLineWidth is always returned when GL_LINE_WIDTH is queried. Clamping and rounding for aliased and
antialiased lines have no effect on the specified value.
Nonantialiased line width may be clamped to an implementation-dependent maximum. Call glGet with GL_ALIASED_LINE_WIDTH_RANGE to determine
the maximum width.
ERRORS
GL_INVALID_VALUE is generated if width is less than or equal to 0.
GL_INVALID_OPERATION is generated if glLineWidth is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GL_LINE_WIDTH
glGet with argument GL_ALIASED_LINE_WIDTH_RANGE
glGet with argument GL_SMOOTH_LINE_WIDTH_RANGE
glGet with argument GL_SMOOTH_LINE_WIDTH_GRANULARITY
glIsEnabled with argument GL_LINE_SMOOTH
SEE ALSO
glEnable(3G)
GLLINEWIDTH(3G)