01-02-2013
Thanks! It works pretty well!
I am trying to understand this code, this line puzzles me:
s = (s ? s "/" : "") substr($i, index($i, "=") + 1
You probably uses some regular expression, right? Can you recommend some document or book for me to better understand this?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I want to extract certain text between two line numbers like
23234234324 and
54446655567567
How do I do this with a simple sed or awk command?
Thank you.
---------- Post updated at 06:16 PM ---------- Previous update was at 05:55 PM ----------
found it:
sed -n '#1,#2p'... (1 Reply)
Discussion started by: return_user
1 Replies
2. Shell Programming and Scripting
Hi,
I got a long list of contents:
>sequence_1
ASSSSSSSSSSSDDDDDDDDDDDCCCCCCC
ASDSFDFFDFDFFWERERERERFSDFESFSFD
>sequence_2
ASDFDFDFFDDFFDFDSFDSFDFSDFSDFDSFASDSADSADASD
ASDFFDFDFASFASFASFAFSFFSDASFASFASFAFS
>sequence_3
VEDFGSDGSDGSDGSDGSDGSDGSDG
dDFSDFSDFSDFSDFSDFSDFSDFSDF... (2 Replies)
Discussion started by: patrick87
2 Replies
3. Shell Programming and Scripting
Hi,
I need to extract <APPNUMBER> tag alone, if the <college> haas IIT Chennai value. college tag value will have spaces embedded. Those spaces should not be suppresses.
My Source file
<Record><sno>1</sno><empid>E0001</empid><name>Rejsh suderam</name><college>IIT ... (3 Replies)
Discussion started by: Sekar1
3 Replies
4. Shell Programming and Scripting
Hello,
I'm trying to code a bash script and I was wondering how to extract a specific line from a stream.
E.g.
My file "file" contains three lines and i'd like to find a function f which returns after execution a specific line like the second line, which would be :
f(file, 2) = Second... (4 Replies)
Discussion started by: Oddant
4 Replies
5. Shell Programming and Scripting
Hi guys,
I have txt file and I would need to extract all the contents between specific line numbers.
Line 1: apple
Line 2: orange
Line 3: mango
Line 4: grapes
Line 5: pine apple
I need to extract the content between line 2 and 4, including the contents of Line 2 and 4 so the ouput... (2 Replies)
Discussion started by: gowrishankar05
2 Replies
6. Shell Programming and Scripting
Say the input was as follows:
Brat 20 x 1000 32rf
Pour 15 p 1621 05pr
Dart 10 z 1111 22xx
My program prompts for an input, what I want is to use the input to locate a specific field. Like if I type in, "Pou" then it would return "Pour" and just "Pour"
I currently have this line but it is... (6 Replies)
Discussion started by: Bungkai
6 Replies
7. Shell Programming and Scripting
Hi All,
I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
Discussion started by: mjavalkar
4 Replies
8. Shell Programming and Scripting
Hi guys,
I have been trying to do this, but... no luck so maybe you can help me.
I have a line like this:
Total Handled, Received, on queue Input Mgs: 140 / 14 => 0
I need to, get the number after the / until the =, to get only 14 .
Any help is greatly appreciated.
Thanks, (4 Replies)
Discussion started by: ocramas
4 Replies
9. Shell Programming and Scripting
Hi, I am trying to use an awk command to replace specific character positions on a line beginning with 80 with contents of another file.
The line beginning with 80 in file1 is as follows:
I want to replace the 000000000178800 (positions 34 - 49) on this file with the contents of... (2 Replies)
Discussion started by: nwalsh88
2 Replies
10. Shell Programming and Scripting
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
Discussion started by: dejavo
13 Replies
books(3) Coin books(3)
NAME
books - Books Related to Open Inventor / Coin Here is a list of some of the better books for people that invested in software development
with Open Inventor. If you have suggestions for additional books that ought to go on this list, please feel free to tell us about it.
The Inventor Mentor
(subtitle 'Programming Object-Oriented 3D Graphics with Open Inventor')
This is an excellently written, detailed, tutorial-style introductory book for Open Inventor that takes you through all the fundamental
design principles applied in the Open Inventor API, richly illustrated and with numerous, well documented code examples.
The Inventor Mentor is getting a bit old, but do not let that put you off. It is as valid today as it was the day it was written, and we
heartily recommend this book for anyone learning to use Open Inventor.
ISBN 0-201-62495-8. You might also be able to find this book as a pdf file online, but we recommend having it in print.
The Inventor Toolmaker
This book explains how Open Inventor was designed for being extended by the users, and walks you through how to develop your own components
that work with all aspects of Coin.
ISBN 0-201-62493-1. You might also be able to find this book as a pdf file online, but we recommend having it in print.
The Annotated VRML2.0 Reference Manual
This book covers the VRML97 (aka VRML 2.0) standard, which Coin has implemented with its Inventor/VRMLnodes/* classes, which is an
extension made beyond the Open Inventor V2.1 API.
The VRML97 format has some significant differences from the Inventor and VRML1 formats, so it is a useful book if you want to use that part
of Coin.
ISBN 0-201-41974-2. You will find the specification documents for VRML97 online at http://www.web3d.org/.
The Open GL Programming Manual
This is the bible when it comes to OpenGL programming and is relevant for Open Inventor extenders that develop new nodes that implement or
affect Open Inventor OpenGL rendering. There are many editions of this book since it is updated whenever new versions of OpenGL are
standardized and comes out, so check that you have identified the latest edition if you order one.
The Open Inventor C++ Reference Manual
Although this book is directly relevant for Open Inventor, it does only cover the Open Inventor 2.1 API. This information is more or less
also covered in the online doxygen doc for Coin, where you have it hyperlinked, and can also be generated offline from the Coin sources to
have locally, so we do not think this book is very useful to have in print. We mention it anyway since it is an official documentation book
for Open Inventor.
ISBN 0-201-62491-5.
Version 3.1.3 Wed May 23 2012 books(3)