Need to compare minus symbol "-" with a column that contains minus on few rows.
the sample script awk I have written is
if ( '$COLUMN2' ~ "\-" ) {}
COLUMN2 is a shell variable. I just need the if condition checking the shell variable within the awk script. Below is the entire awk part... (14 Replies)
Hi, Iam new to unix. I have one input file .
Input file :
ID1~Name1~Place1
ID2~Name2~Place2
ID3~Name3~Place3
I need output such that only first column should change to fixed width column of 15 characters of length.
Output File:
ID1<<12 spaces>>Name1~Place1
ID2<<12... (5 Replies)
I have a txt file with several columns and i want to peform an operation on two columns and output it to a new txt file .
file.txt
900.00000 1 1 1
500.00000
500.00000
100000.000
4
4
1.45257346E-07 899.10834 ... (4 Replies)
Match column 3 in file1 to column 1 in file 2 and replace with column 2 from file2
file 1 sample
SNDK 80004C101 AT
XLNX 983919101 BB
NETL 64118B100 BS
AMD 007903107 CC
KLAC 482480100 DC
TER 880770102 KATS
ATHR 04743P108 KATS... (7 Replies)
I am trying to enter a third column in this file, but the third column should that I call "Math" perform a some math calculations based on the value found in column #2.
Here is the input file:
Here is the desired output:
Output
GERk0203078$ Levir Math
Cotete_1... (5 Replies)
Hi All,
I have a file example.csv which looks like this
GrpID,TargetID,Signal,Avg_Num
CSCH74_1_1,2007,61,256
CSCH74_1_1,212007,647,679
CSCH74_1_1,12007,3,32
CSCH74_1_1,207,299,777
I want the output as
GrpID,TragetID,Signal-CSCH74_1_1,Avg_Num
CSCH74_1_1,2007,61,256... (4 Replies)
This is my input file :
# cat list 20130430121600, cucm, location,76,2 20130430121600,cucm1,location1,76,4 20130430122000,cucm,location,80,8 20130430122000,cucm1,location1,90,8 20130430140000,cucm1,location1,87,11 20130430140000, cucm,location,67,9
This is the required output
... (1 Reply)
Hi,
My input files is like this
axis1 0 1 10
axis2 0 1 5
axis1 1 2 -4
axis2 2 3 -3
axis1 3 4 5
axis2 3 4 -1
axis1 4 5 -6
axis2 4 5 1
Now, these are my following tasks
1. Print a first column for every two rows that has the same value followed by a string.
2. Match on the... (3 Replies)
Hi Experts,
Please bear with me, i need help
I am learning AWk and stuck up in one issue.
First point : I want to sum up column value for column 7, 9, 11,13 and column15 if rows in column 5 are duplicates.No action to be taken for rows where value in column 5 is unique.
Second point : For... (12 Replies)
Discussion started by: as7951
12 Replies
LEARN ABOUT DEBIAN
qwtarrayseriesdata
QwtArraySeriesData(3) Qwt User's Guide QwtArraySeriesData(3)NAME
QwtArraySeriesData -
Template class for data, that is organized as QVector.
SYNOPSIS
#include <qwt_series_data.h>
Inherits QwtSeriesData< T >.
Public Member Functions
QwtArraySeriesData ()
QwtArraySeriesData (const QVector< T > &)
void setSamples (const QVector< T > &)
const QVector< T > samples () const
virtual size_t size () const
virtual T sample (size_t) const
Protected Attributes
QVector< T > d_samples
Detailed Description
template<typename T> class QwtArraySeriesData< T >
Template class for data, that is organized as QVector.
QVector uses implicit data sharing and can be passed around as argument efficiently.
Constructor & Destructor Documentation
template<typename T > QwtArraySeriesData< T >::QwtArraySeriesData ()
Constructor.
template<typename T> QwtArraySeriesData< T >::QwtArraySeriesData (const QVector< T > &samples) Constructor
Parameters:
samples Array of samples
Member Function Documentation
template<typename T > T QwtArraySeriesData< T >::sample (size_ti) const [virtual] Return a sample
Parameters:
i Index
Returns:
Sample at position i
Implements QwtSeriesData< T >.
template<typename T > const QVector< T > QwtArraySeriesData< T >::samples () const Returns:
Array of samples
template<typename T> void QwtArraySeriesData< T >::setSamples (const QVector< T > &samples) Assign an array of samples
Parameters:
samples Array of samples
template<typename T > size_t QwtArraySeriesData< T >::size () const [virtual] Returns:
Number of samples
Implements QwtSeriesData< T >.
Member Data Documentation
template<typename T> QVector<T> QwtArraySeriesData< T >::d_samples [protected]
Vector of samples.
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Version 6.0.0 Fri Apr 15 2011 QwtArraySeriesData(3)