11-14-2013
What have you tried so far?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all:b:,
how to read the column and print the values under that column ...??
file1 have something like this
cat file1
=======
column1, column2,date,column3,column4.....
1, 23 , 12/02/2008,......
2, 45, 14/05/2008,.....
3, 56, 16/03/2008,.....
cat file2
=======... (6 Replies)
Discussion started by: gemini106
6 Replies
2. Shell Programming and Scripting
I'm having problems since few days ago, and i'm not able to make it works with a simple awk+grep script (or other way to do this).
For example, i have a input file1.txt:
cat inputfile1.txt
218299910417
1172051195
1172070231
1172073514
1183135117
1183135118
1183135119
1281440202
... (3 Replies)
Discussion started by: poliver
3 Replies
3. Shell Programming and Scripting
Hi All,
I have a file which is having 3 columns as (string string integer)
a b 1
x y 2
p k 5
y y 4
.....
.....
Question:
I want get the unique value of column 2 in a sorted way(on column 2) and the sum of the 3rd column of the corresponding rows. e.g the above file should return the... (6 Replies)
Discussion started by: amigarus
6 Replies
4. Shell Programming and Scripting
Hi. How do I find an expression with awk in only one column, and if it fits, then print that whole column.
1 apple oranges
2 bannanas pears
3 cats dogs
4 hesaid shesaid
echo "which number:"
read NUMBER (user inputs number 2 for this example)
awk " /$NUMBER/ {field to search is field... (2 Replies)
Discussion started by: glev2005
2 Replies
5. Shell Programming and Scripting
Hi,
I have a file filled with search strings which have a blank in between and look like this:
S. g. Ehr.
o. Jg.
v. d. Chijs
g. Ehr.
Now i would like to search for the strings and it also shall return the next column after the match.
awk -v FILE="search_strings.txt" 'BEGIN {... (10 Replies)
Discussion started by: sdf
10 Replies
6. Shell Programming and Scripting
Dear All,
I have a data file input.csv like below. (Only five column shown here for example.)
Data1,StepNo,Data2,Data3,Data4
2,1,3,4,5
3,1,5,6,7
3,2,4,5,6
5,3,5,5,6
From this I want the below output
Data1,StepNo,Data2,Data3,Data4
2,1,3,4,5
3,1,5,6,7
where the second column... (4 Replies)
Discussion started by: ks_reddy
4 Replies
7. Shell Programming and Scripting
Hi,
I have the following file,
chr1 100 200 20
chr1 201 300 22
chr1 220 345 23
chr1 230 456 33.5
chr1 243 567 90
chr1 345 600 20
chr1 430 619 21.78
chr1 870 910 112.3
chr1 914 920 12
chr1 930 999 13
My output would be
peak1 20 22 23 33.5 90
peak2 20 21.78 112.3 12 13
Here the... (3 Replies)
Discussion started by: jacobs.smith
3 Replies
8. Shell Programming and Scripting
file1:
file2:
I need to find matches for any lines in file1 that appear in file2. Desired output is '>' plus the file1 term, followed by the line after the match in file2 (so the title is a little misleading):
This is honestly beyond what I can do without spending the whole night on it, so I'm... (2 Replies)
Discussion started by: pathunkathunk
2 Replies
9. Shell Programming and Scripting
Hi all,
I am new to using awk and am quickly discovering what a powerful pattern-recognition tool it is. However, I have what seems like a fairly basic task that I just can't figure out how to perform in one line. I want awk to find and print all the lines in which one of multiple patterns (e.g.... (8 Replies)
Discussion started by: elgo4
8 Replies
10. Shell Programming and Scripting
Example:
I have files in below format
file 1:
zxc,133,joe@example.com
cst,222,xyz@example1.com
File 2 Contains:
hxd
hcd
jws
zxc
cst
File 1 has 50000 lines and file 2 has around 30000 lines :
Expected Output has to be :
hxd
hcd
jws (5 Replies)
Discussion started by: TestPractice
5 Replies
LEARN ABOUT DEBIAN
sosfrotation
SoSFRotation(3) Coin SoSFRotation(3)
NAME
SoSFRotation -
The SoSFRotation class is a container for an SbRotation.
This field is used where nodes, engines or other field containers needs to store a single rotation definition.
SYNOPSIS
#include <Inventor/fields/SoSFRotation.h>
Inherits SoSField.
Public Member Functions
virtual SoType getTypeId (void) const
virtual void copyFrom (const SoField &field)
const SoSFRotation & operator= (const SoSFRotation &field)
virtual SbBool isSame (const SoField &field) const
const SbRotation & getValue (void) const
void setValue (const SbRotation &newvalue)
const SbRotation & operator= (const SbRotation &newvalue)
int operator== (const SoSFRotation &field) const
int operator!= (const SoSFRotation &field) const
void getValue (SbVec3f &axis, float &angle) const
void setValue (const float q0, const float q1, const float q2, const float q3)
void setValue (const float q[4])
void setValue (const SbVec3f &axis, const float angle)
Static Public Member Functions
static void * createInstance (void)
static SoType getClassTypeId (void)
static void initClass (void)
Protected Attributes
SbRotation value
Additional Inherited Members
Detailed Description
The SoSFRotation class is a container for an SbRotation.
This field is used where nodes, engines or other field containers needs to store a single rotation definition.
Fields of this type stores their value to file as a rotation axis vector plus a rotation angle: 'axis0 axis1 axis2 angle'.
Note that there is one very common mistake that is easy to make when setting the value of an SoSFRotation field, and that is to
inadvertently use the wrong SbRotation constructor. This example should clarify the problem:
mytransformnode->rotation.setValue(0, 0, 1, 1.5707963f);
The programmer clearly tries to set a PI/2 rotation around the Z axis, but this will fail, as the SbRotation constructor invoked above is
the one that takes as arguments the 4 floats of a quaternion. What the programmer almost certainly wanted to do was to use the SbRotation
constructor that takes a rotation vector and a rotation angle, which is invoked like this:
mytransformnode->rotation.setValue(SbVec3f(0, 0, 1), 1.5707963f);
See also:
SoMFRotation
Member Function Documentation
SoType SoSFRotation::getClassTypeId (void) [static]
Returns a unique type identifier for this field class.
See also:
getTypeId(), SoType
Reimplemented from SoSField.
SoType SoSFRotation::getTypeId (void) const [virtual]
Returns the type identification instance which uniquely identifies the Coin field class the object belongs to.
See also:
getClassTypeId(), SoType
Implements SoField.
void SoSFRotation::copyFrom (const SoField &f) [virtual]
Copy value(s) from f into this field. f must be of the same type as this field.
Implements SoField.
SbBool SoSFRotation::isSame (const SoField &f) const [virtual]
Check for equal type and value(s).
Implements SoField.
void SoSFRotation::initClass (void) [static]
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system.
Reimplemented from SoSField.
void SoSFRotation::getValue (SbVec3f &axis, float &angle) const
Return value of rotation as an axis and an angle around this axis.
void SoSFRotation::setValue (const floatq0, const floatq1, const floatq2, const floatq3)
Set the rotation from a set of quaternion values.
void SoSFRotation::setValue (const floatq[4])
Set the rotation from a set of quaternion values.
void SoSFRotation::setValue (const SbVec3f &axis, const floatangle)
Set the rotation from an axis and an angle around this axis.
Author
Generated automatically by Doxygen for Coin from the source code.
Version 3.1.3 Wed May 23 2012 SoSFRotation(3)