I'd try to look at those blank lines a little closer. Try to pipe them to 'od' : they should differ, if they contain different whitespace characters.
Then, you could use e.g. sed to replace the white chars with something else:
I have a file containing two fields, Name and Time, with about 57 lines in this file. I am struggling to create a loop that will cut out the first ten lines of this file and echo it to the screen. Can anybody help me please. (1 Reply)
hey guys, need ur expert help. m a core banker got stuck in someting techie and cant find a solution
have manged to extract a file from oracle apps in a format that looks something like this...
REC- A b c d x
INV- A b... (6 Replies)
Help...please.
I have a log that contains
Warning Authentication Failed: User GHDT88998HS doesn't exit: The User GHDT88998HS could not be found Mar 22, 2008 5:22:22AM com.hometel.ttm.auth.userlogin.
about maybe a thousand entries failed user acct message
How can I grab just the username... (2 Replies)
Hi all,
I need help manipulating the file below.
Here is what I needed to do.
First, I have to replace INSUPD to DELETE.
Then I need to change the content of the file around by flipping the contents in the file from the bottom to the top (start from "CMD")
How should I attack this?
Here... (2 Replies)
Hi everybody,
I need an urgent help with a BASH script. I have file which contains (besides the other data) the lines with the following structure identified by with keyword PCList:
<PARAMETER NAME="PCList"
TYPE="LIST_STRUCTURE"
MODEL="{,}"
... (1 Reply)
Hello everyone,
I am trying to manipulate a large .csv file where I have output similar to the following -
http://imgur.com/TEXD8.png
The result that I am looking for would be to consolidate the first column, but combine the second and third column so it still relates to the first. I... (8 Replies)
Hi
I have a file content.txt where I want to replace the value of second column of the file with half of the value of that column.
I only have to replace if the second column starts with COM_, rest all values have to be same
eg,
cat content.txt
|COM_A|123|JHV|8475
|ABC|2765|BV|876... (7 Replies)
Discussion started by: infyanurag
7 Replies
LEARN ABOUT MOJAVE
glutstrokecharacter
glutStrokeCharacter(3GLUT) GLUT glutStrokeCharacter(3GLUT)NAME
glutStrokeCharacter - renders a stroke character using OpenGL.
SYNTAX
#include <GLUT/glut.h>
void glutStrokeCharacter(void *font, int character);
ARGUMENTS
font Stroke font to use.
character Character to render (not confined to 8 bits).
DESCRIPTION
Without using any display lists, glutStrokeCharacter renders the character in the named stroke font. The available fonts are:
GLUT_STROKE_ROMAN
A proportionally spaced Roman Simplex font for ASCII characters 32 through 127. The maximum top character in the font is 119.05
units; the bottom descends 33.33 units.
GLUT_STROKE_MONO_ROMAN
A mono-spaced spaced Roman Simplex font (same characters as GLUT_STROKE_ROMAN) for ASCII characters 32 through 127. The maximum top
character in the font is 119.05 units; the bottom descends 33.33 units. Each character is 104.76 units wide.
Rendering a nonexistent character has no effect. A glTranslatef is used to translate the current model view matrix to advance the width of
the character.
EXAMPLE
Here is a routine that shows how to render a string of ASCII text with glutStrokeCharacter:
void
output(GLfloat x, GLfloat y, char *text)
{
char *p;
glPushMatrix();
glTranslatef(x, y, 0);
for (p = text; *p; p++)
glutStrokeCharacter(GLUT_STROKE_ROMAN, *p);
glPopMatrix();
}
If you want to draw stroke font text using wide, antialiased lines, use:
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
glEnable(GL_LINE_SMOOTH);
glLineWidth(2.0);
output(200, 225, "This is antialiased.");
SEE ALSO
glutBitmapCharacter, glutStrokeWidth
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutStrokeCharacter(3GLUT)