I have two files. File A and File B.
File A has two fields separated by comma
352020252365988, 652020100572356
546876543215667, 652065465654686
...
File B has many Fields separate by spaces
Date Name 352020252365988 Reference
Date2 Name2 546876543215667 Reference
I want to... (4 Replies)
Hi All,
I have two comma separated value(CSV) files, say FileA and FileB.
The contents looks like that shown below.
FileA
EmpNo,Name,Age,Sex,
1000,ABC,23,M,
1001,DES,24,F, ... (2 Replies)
I want to sort alphabetically on the first field and sort in descending numerical order on the 2nd field. With a normal "sort -r -n" it does this:
abc ||| 5e-05 ||| bla
abc ||| 3 ||| ble
def ||| 1 ||| abc
def ||| 0.2 ||| def
As you can see it ignores the fact that 5e-05 is actually 0.00005... (1 Reply)
Hi,
I've internally searched through forums for about 2+ hours. Unfortunately, with no luck. Although I've found some cases close to mine below, but didn't help so much.
Actually, I'm in short with time. So I had to post my case. Hoping that you can help.
I have 2 files,
FILE1
... (0 Replies)
Hi Friends,
I am new to Shell Scripting and need your help in the below situation.
- I have two files (File 1 and File 2) and the contents of the files are mentioned below.
- "Application handle" is the common field in both the files.
(NOTE :- PLEASE REFER TO THE ATTACHMENT "Compare files... (2 Replies)
Hi Friends,
Need Help. I have file1.txt as
File1.txt
|123|A|7267|Hyder|Cross|Sell|7801
|995|A|7051|2008|Lunar|New|Year|Promotion|7801
|996|A|7022|Q108|Targ|Prospect|&|SSCC|Savings|Promo|7801
|997|A|7182|Q1|Feb-Apr|08|Credit|ITA|PA|SBA|Campaign|7801
File2.txt... (7 Replies)
I have a .CSV file (file.csv) whose data are all enclosed in double quotes. Sample format of the file is as below:
column1,column2,column3,column4,column5,column6, column7, Column8, Column9, Column10
"12","B000QRIGJ4","4432","string with quotes, and with a comma, and colon: in... (3 Replies)
Hi,
For example:
I have:
HostA,XYZ
HostB,XYZ
HostC,ABC
I would like the output to be:
HostA,HostB: XYZ
HostC:ABC
How can I achieve this?
So far what I though of is: (1 Reply)
hi
I have 2 file with more than 10 columns for both
1st file
apple,0,0,0......
orange,1,2,3.....
mango,2,4,5.....
2nd file
apple,2,3,4,5,6,7...
orange,2,3,4,5,6,8...
watermerlon,2,3,4,5,6,abc...
mango,5,6,7,4,6,def.... (1 Reply)
Discussion started by: tententen
1 Replies
LEARN ABOUT DEBIAN
somfshort
SoMFShort(3) Coin SoMFShort(3)NAME
SoMFShort -
The SoMFShort class is a container for short integer values.
This field is used where nodes, engines or other field containers needs to store a group of multiple short integer values.
SYNOPSIS
#include <Inventor/fields/SoMFShort.h>
Inherits SoMField.
Public Member Functions
virtual SoType getTypeId (void) const
virtual void copyFrom (const SoField &field)
const SoMFShort & operator= (const SoMFShort &field)
virtual SbBool isSame (const SoField &field) const
short operator[] (const int idx) const
const short * getValues (const int start) const
int find (short value, SbBool addifnotfound=FALSE)
void setValues (const int start, const int num, const short *newvals)
void set1Value (const int idx, short value)
void setValue (short value)
short operator= (short val)
SbBool operator== (const SoMFShort &field) const
SbBool operator!= (const SoMFShort &field) const
short * startEditing (void)
void finishEditing (void)
void setValuesPointer (const int num, const short *userdata)
void setValuesPointer (const int num, short *userdata)
Static Public Member Functions
static void * createInstance (void)
static SoType getClassTypeId (void)
static void initClass (void)
Protected Member Functions
virtual void deleteAllValues (void)
virtual void copyValue (int to, int from)
virtual int fieldSizeof (void) const
virtual void * valuesPtr (void)
virtual void setValuesPtr (void *ptr)
virtual void allocValues (int num)
Protected Attributes
short * values
Detailed Description
The SoMFShort class is a container for short integer values.
This field is used where nodes, engines or other field containers needs to store a group of multiple short integer values.
This field supports application data sharing through a setValuesPointer() method. See SoMField documentation for information on how to use
this function.
See also:
SoSFShort
Member Function Documentation
SoType SoMFShort::getClassTypeId (void) [static]
Returns a unique type identifier for this field class.
See also:
getTypeId(), SoType
Reimplemented from SoMField.
SoType SoMFShort::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 SoMFShort::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 SoMFShort::isSame (const SoField &f) const [virtual]
Check for equal type and value(s).
Implements SoField.
void SoMFShort::deleteAllValues (void) [protected], [virtual]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Implements SoMField.
void SoMFShort::copyValue (intto, intfrom) [protected], [virtual]
This method is used for moving values around internally within a multivalue field. It needs to be overridden in each field so it
automatically takes care of running copy contructors where necessary.
Implements SoMField.
const short* SoMFShort::getValues (const intstart) const [inline]
Returns a pointer to the values array.
void SoMFShort::initClass (void) [static]
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system.
Reimplemented from SoMField.
Author
Generated automatically by Doxygen for Coin from the source code.
Version 3.1.3 Wed May 23 2012 SoMFShort(3)