I have a file curve.csv which is generated from oracle and each line has a comment associated with it, I want to get rid of this comment, can you please suggest me a command as how to do it
Eg,
the output that I want it
there is no requirement for comment, can you please suggest?
Thanks
i need to use sed to remove an entire line containing a pattern stored in a variable say $var1
this var1 will be a URL and will therefore contain slashes
any help would be greatly appreciated (1 Reply)
I have a file that will sometimes contain a pattern. The pattern is this:
W/D FRM CHK 00
I want to find any lines with this pattern, delete those lines, and also delete the line above and the line below. (1 Reply)
I am trying to delete a pattern without removing line. I searched a lot in this forum and using those I could come up with sed command but it seems that command does not work. Here's how my file looks like:
1 ./63990 7
1171 ./63990 2
2425 ./63990 9
2539 ./63990 1
3125 ./63990 1
10141... (7 Replies)
Hi,
I have got the below requirement. please suggest.
I have a file like,
Processing Item is:
/data/ing/cfg2/abc.txt
/data/ing/cfg3/bgc.txt
Processing Item is:
/data/cmd/for2/ght.txt
/data/kernal/config.klgt.txt
I want to process the above file to get the output file like,
... (5 Replies)
Hi,
I want to remove the spaces from all the lines matching a particular pattern from my file. For instance in file abc.txt I have following data.
Header,This is the header
111,this is 1st record
222, this is 2nd record
333, this is 3rd record
Footer,3 records found
Footer,111222333 ... (5 Replies)
Hi Everybody! First post! Totally noobie.
I'm using the terminal to read a poorly formatted book.
The text file contains, in the middle of paragraphs, hyphenation to split words that are supposed to be on multiple pages. It looks ve -- ry much like this.
I was hoping to use grep -v " -- "... (5 Replies)
I am trying to combine lines with these conditions:
1. First line starts with text of "libname VALUE db2 datasrc" where VALUE can be any text.
2. If condition1 is met then continue to combine lines through a line that ends with a semicolon.
3. Ignore case when matching patterns and remove any... (5 Replies)
GLUPWLCURVE(3G)GLUPWLCURVE(3G)NAME
gluPwlCurve - describe a piecewise linear NURBS trimming curve
C SPECIFICATION
void gluPwlCurve( GLUnurbs* nurb,
GLint count,
GLfloat* data,
GLint stride,
GLenum type )
PARAMETERS
nurb Specifies the NURBS object (created with gluNewNurbsRenderer).
count Specifies the number of points on the curve.
data Specifies an array containing the curve points.
stride Specifies the offset (a number of single-precision floating-point values) between points on the curve.
type Specifies the type of curve. Must be either GLU_MAP1_TRIM_2 or GLU_MAP1_TRIM_3.
DESCRIPTION
gluPwlCurve describes a piecewise linear trimming curve for a NURBS surface. A piecewise linear curve consists of a list of coordinates of
points in the parameter space for the NURBS surface to be trimmed. These points are connected with line segments to form a curve. If the
curve is an approximation to a curve that is not piecewise linear, the points should be close enough in parameter space that the resulting
path appears curved at the resolution used in the application.
If type is GLU_MAP1_TRIM_2, then it describes a curve in two-dimensional (u and v) parameter space. If it is GLU_MAP1_TRIM_3, then it
describes a curve in two-dimensional homogeneous (u, v, and w) parameter space. See the gluBeginTrim reference page for more information
about trimming curves.
NOTES
To describe a trim curve that closely follows the contours of a NURBS surface, call gluNurbsCurve.
SEE ALSO gluBeginCurve(3G), gluBeginTrim(3G), gluNewNurbsRenderer(3G), gluNurbsCurve(3G)GLUPWLCURVE(3G)