This works for adding the index column,
This is a tab delimited file, so I made that change.
The input looks like,
and for the first transformation, I need
The code above gets me the index column, for the third column I tried,
but that definitely didn't work.
I want to select the first column from a daily file called foo.csv. The result is written to file foo.txt. Currently the following script is used for that:
cut -d, -f 1 foo.csv > foo.txt
A typical result would yield :
A12
A45
B11
B67
What needs to happen in addition is that two columns... (5 Replies)
Hi,
I wanted to add specific text to each row in a text file containing three rows. Example:
0 8 7 6 5 5
7 8 9 0 7 9
7 8 9 0 1 2
And I want to add a 21 at the beginning of the first row, and blank spaces at the beginning of the second two rows. To get this:
21 0 8 7 6 5 5
7 8... (4 Replies)
Hi everybody,
I've got two simples file1 like:
aaa aaa aaa
bbb bbb bbb
ccc ccc ccc
and file2 like:
111 111 111
222 222 222
333 333 333
I need to:
1) add a line say "new line" as the first line of the file
2)add a column from file2 (say column3) to file1; the new column should... (14 Replies)
I am attempting to insert multiple lines of text into a specific place in a text file based on the lines above or below it.
For example, Here is a portion of a zone file.
IN NS ns1.domain.tld.
IN NS ns2.domain.tld.
IN ... (2 Replies)
Hi All ,
Kindly help me with this soln
awk '{printf "%s %7s \n", $1,$c}' infile
where
value of variable c I am externally giving input
But executing the above command shows all the columns of infile where as I want only 1st column of infile and 2nd column should print value c (8 Replies)
Hello,
I have a comma separated flat file. It contains some 20 columns. I want to add two new columns at position 2,3. So that file will have 22 columns. I am providing here sample data with file having 4 columns. Appreciate your help in finding solution for this.
data in input file:... (11 Replies)
I have a text file that has three columns. But at the end of the text file, there are trailing lines that have missing second and third columns:
4 0.04972604 KLHL28
4 0.0497332 CSTB
4 0.04979822 AIF1
4 0.04983331 DECR2
4 0.04990344 KATNB1
4
4
4
4
How can I remove the trailing... (3 Replies)
I have a file in which I need to add more columns to based on a key in the first file:
File1
key1,abc,123,
key2,def,456,
key3,ghi,789,
File2
key2,zyx,111,qqq,
key3,yuu,222,www,
key1,pui,333,eee,
key4,xxx,999,rrr,
I would like to create the following output:
Output (1 Reply)
Hello,
I am very now to this, hope you can help,
I am looking into editing a file in Solaris, with dinamic collums (lenght varies) and I need 2 things to be made, the fist is to filter the first column and third column from the file bellow file.txt, and create a new file with the 2 filtered... (8 Replies)
Hello,
Can someone please help in below requirement.
My requirement is to add date before to first column,some text before 1st,2nd coulmns and insert a new column in between 2 and 3 columns.
input file.
aa 123 dddd
aa 667 kdkdk
ddj 738 kkkk
aa 123 dddd
aa 667 ... (5 Replies)
Discussion started by: Cva2568
5 Replies
LEARN ABOUT DEBIAN
sotriggerany
SoTriggerAny(3) Coin SoTriggerAny(3)NAME
SoTriggerAny -
The SoTriggerAny class is a fan-in engine for triggers.
When any one of the input triggers are 'pulsed', any field connected as a slave to the engine output will be notified.
SYNOPSIS
#include <Inventor/engines/SoTriggerAny.h>
Inherits SoEngine.
Public Member Functions
virtual SoType getTypeId (void) const
virtual const SoFieldData * getFieldData (void) const
virtual const SoEngineOutputData * getOutputData (void) const
SoTriggerAny (void)
Static Public Member Functions
static SoType getClassTypeId (void)
static void * createInstance (void)
static void initClass (void)
Public Attributes
SoSFTrigger input0
SoSFTrigger input1
SoSFTrigger input2
SoSFTrigger input3
SoSFTrigger input4
SoSFTrigger input5
SoSFTrigger input6
SoSFTrigger input7
SoSFTrigger input8
SoSFTrigger input9
SoEngineOutput output
Protected Member Functions
virtual ~SoTriggerAny (void)
Static Protected Member Functions
static const SoFieldData ** getInputDataPtr (void)
static const SoEngineOutputData ** getOutputDataPtr (void)
Detailed Description
The SoTriggerAny class is a fan-in engine for triggers.
When any one of the input triggers are 'pulsed', any field connected as a slave to the engine output will be notified.
Constructor & Destructor Documentation
SoTriggerAny::SoTriggerAny (void)
Default constructor.
SoTriggerAny::~SoTriggerAny (void) [protected], [virtual]
Destructor is protected because explicit destruction of engines is not allowed.
Member Function Documentation
SoType SoTriggerAny::getClassTypeId (void) [static]
This static method returns the SoType object associated with objects of this class.
Reimplemented from SoEngine.
SoType SoTriggerAny::getTypeId (void) const [virtual]
Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and 'downward'
casting.
Usage example:
void foo(SoNode * node)
{
if (node->getTypeId() == SoFile::getClassTypeId()) {
SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type
}
}
For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be
overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually
accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and
SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on.
For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups.
Implements SoBase.
const SoFieldData ** SoTriggerAny::getInputDataPtr (void) [static], [protected]
Returns the SoFieldData class which holds information about inputs in this engine.
Reimplemented from SoEngine.
const SoEngineOutputData ** SoTriggerAny::getOutputDataPtr (void) [static], [protected]
Returns the SoEngineOutputData class which holds information about the outputs in this engine.
Reimplemented from SoEngine.
const SoFieldData * SoTriggerAny::getFieldData (void) const [virtual]
Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL.
Reimplemented from SoFieldContainer.
const SoEngineOutputData * SoTriggerAny::getOutputData (void) const [virtual]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Implements SoEngine.
void SoTriggerAny::initClass (void) [static]
Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.
Reimplemented from SoEngine.
Member Data Documentation
SoSFTrigger SoTriggerAny::input0
Input trigger.
SoSFTrigger SoTriggerAny::input1
Input trigger.
SoSFTrigger SoTriggerAny::input2
Input trigger.
SoSFTrigger SoTriggerAny::input3
Input trigger.
SoSFTrigger SoTriggerAny::input4
Input trigger.
SoSFTrigger SoTriggerAny::input5
Input trigger.
SoSFTrigger SoTriggerAny::input6
Input trigger.
SoSFTrigger SoTriggerAny::input7
Input trigger.
SoSFTrigger SoTriggerAny::input8
Input trigger.
SoSFTrigger SoTriggerAny::input9
Input trigger.
SoEngineOutput SoTriggerAny::output
(SoSFTrigger) Connect to the output with the field(s) you want notified upon any input trigger 'pulses'.
Author
Generated automatically by Doxygen for Coin from the source code.
Version 3.1.3 Wed May 23 2012 SoTriggerAny(3)