Your specification is a bit vague. Find ALL lines with "world" and "page", even if there are more than one? Where to insert them (we can only guess: after a (ALL?) line(s) with "world" and "page" in them)?
Anyhow, all that can't be done with grep. Try (if you've got GNU sed):
Hi
I am having some trouble cut and paste a file based on the content of another file.
I have a file called draft. I need to cut and paste its content to another file based on the content of a file called proc.txt
The content of proc.txt is like the following:... (7 Replies)
Hi,
how can we search for a word (with case ignore )on specific line numbers
ex:
Awk /^regEX/ with condition on first line or second line
Awk/^ regex1/ on line 1
Awk /^regEX2/ on line 3
thanks in advance (4 Replies)
Is there a way to grep only one line from a file listing name of files?
If I use head -1 it's ok(the first line only)
If I use head -2 it's not good because I have already checked the first line.
I'd like something like this:
while test $i -le $max
do
grep "$3" `head -$i temp.txt` >... (4 Replies)
Hello!
I need to delete one line in a file which matches one very precise instance of a string only. When searching the forum I unfortunately only found a solution which would delete each line on which a particular string occurs.
Let's assume I have a file composed of thousands of lines... (4 Replies)
Dear All
I want to search string "1000" from input file and if it found i want remove line that contain 1000 and also remove 3 line above it and 2 line below it.
INPUT FILE:
BHAT-D 2
aaa
ID CODE GS UPDATE MODE LANG MCO MCL NUMPAGES
50 ... (7 Replies)
I have a file on UNIX system from where I want to grep the list of all users associated to the particular repository.If the user's list is in single line then I fetch all list but if it is in two separate lines it doesn't.I use the below command
a=KESTREL-DEV;b=users;cat access_file|grep... (1 Reply)
Suppose i have the following data :
cat file.txt
12431,123334,55353,546646,14342234,4646,35234
123123,3535,123434,132535,1234134,13535,123534
123213,545465,23434,45646,2342345,4656,31243
2355425,2134324,53425,342,35235,23434,234535
3423424,234234,65465,,2344,35436,234524,234... (7 Replies)
Hi guys,
I am running a while loop in a script ro read a file line by line.
Now I want to run a grep only on the lines below the line I am that is being read by the while loop.
Eg:
If my while loop is on line 4 of the file, the grep only runs below line 4 and does not include line 1,2... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies
LEARN ABOUT DEBIAN
xracer::bvrml
BVRML(3pm) User Contributed Perl Documentation BVRML(3pm)NAME
XRacer::BVRML - Parser for a tiny subset of VRML generated by Blender
SYNOPSIS
use XRacer::BVRML;
DESCRIPTION
This is a parser for a tiny subset of VRML generated by Blender, so called Blender-VRML or BVRML. In fact, this parser is by no means
guaranteed to be able to parse everything that Blender could generate. I will add parsing capability to it as I see the need.
"XRacer::BVRML" parses a Blender VRML file, and stores it in an internal world representation, which can be inspected and manipulated.
"XRacer::BVRML" can also write out a C function containing GL commands which render this world object, and this function can then be used
inside an XRacer track or craft file.
CLASS METHODS
$world = XRacer::BVRML->parse ($filename [, $world]);
This function parses a BVRML file called $filename, and generates a $world object. If the second optional $world parameter is given,
then the BVRML file is parsed and the results are merged with the existing $world object.
If the parsing fails, then this function will print an error message and return "undef".
WORLD OBJECT METHODS
$nr_vertices = $world->nr_vertices;
Return the total number of vertices in the world.
$nr_faces = $world->nr_faces;
Return the total number of faces in the world.
@vertices = $world->vertices;
Aggregate all vertices in the world, and return it as a list.
@faces = $world->faces;
Aggregate all faces in the world, and return it as a list.
($smallest_x, $largest_x, $smallest_y, $largest_y, $smallest_z, $largest_z) = $world->bbox;
Return the bounding box (or bounding cuboid, to be more precise) of this world.
$world->write_display_function ([name => $function_name,] [filehandle => $filehandle,] [decl => $decl]);
Write out a C function containing GL calls which, when invoked, will display this world object. The C function is called $function_name
and will be written to the file specified by the $filehandle. The function will be declared as "void function_name (void)" unless the
$decl parameter is given, which gives the return declaration. The C function is suitable for directly linking into XRacer craft and
track files. However, it requires some support. In particular, you will need to include the header file GL/gl.h, and probably xracer.h
before the function.
AUTHOR
Richard W.M. Jones, <rich@annexia.org>
COPYRIGHT
XRacer is copyright (C) 1999-2000 Richard W.M. Jones (rich@annexia.org) and other contributors listed in the AUTHORS file.
SEE ALSO perl(1), xracer(6).
perl v5.14.2 2000-01-07 BVRML(3pm)