9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have a file with data as follows:
3/23/2014 22:01:18 1
3/23/2014 22:01:47 0
3/23/2014 22:03:35 0
3/23/2014 22:04:50 1
3/24/2014 1:16:41 0
3/24/2014 1:18:00 0
3/24/2014 1:18:36 0
3/24/2014 1:21:46 0
3/25/2014 13:00:31 1
3/25/2014 13:00:54 0
3/25/2014 13:13:09 0
3/25/2014 13:14:15 0... (2 Replies)
Discussion started by: ssk250
2 Replies
2. Shell Programming and Scripting
Hi,
I have a file which has 4500 entries
10000
9880
9800
8700
8200
...
.....
...
...
...
...
...
...
...
50 (1 Reply)
Discussion started by: Diya123
1 Replies
3. Shell Programming and Scripting
Hi All,
I have source file
x.txt
0001|0003
0031|0031
0045|0049
My desired output should be:
y.txt
0001
0002
0003
0031
0045
0046
0047 (11 Replies)
Discussion started by: kmsekhar
11 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I have two files as shown below:
test1
678
679
689
690
710
test2
1 678
654 800
676 791
689 900
I want to get a count of lines from test2 whose columns bound the values in test1
I tried running the code below; however am getting wrong results. (3 Replies)
Discussion started by: Gussifinknottle
3 Replies
5. Shell Programming and Scripting
Help plz
Does any one have any idea how to compare interval ranges of 2 files.
finding 1-4 (1,2,3,4) of input2 in input1 of same key "a" values (5-10, 30-40, 45-60, 80-90, 100-120 ). Obviously 1-4 is not one of the range with in input1 a. so it should give out of range.
finding 30-33(31,32,33)... (1 Reply)
Discussion started by: repinementer
1 Replies
6. Shell Programming and Scripting
Hi,
I wanted to add a newline character after every 100 characters in a file using a awk or shell without reading each line of the file.
I want to run a command on the complete file.
This does based on a string but i want to add a new line after every 100 characters ir-respective of the... (3 Replies)
Discussion started by: vijaykrc
3 Replies
7. Shell Programming and Scripting
I'm trying to assign variables that include the current value of a count, but I can't seem to get it working... this script is incomplete, but some guidance on how to use a dynamic variable would be helpful:
Sample Input:
bash-2.03$ more sg2.txt
Results for group6
443
1394
Results for... (3 Replies)
Discussion started by: earnstaf
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I got a request from a client to check on their server's cpu, memory and disk utilization. Am planning to use the sar and iostat commands to achieve this. The server is used for sending and receiving messages between the stockbrokers, so I was thinking to run the commands during the market... (9 Replies)
Discussion started by: 60doses
9 Replies
9. Shell Programming and Scripting
Hi Friends,
Can anyone help me with this:
To get the count of files that are existing in a directory created on a perticular date like in the example (01/08) .(having same pattern for the filename)
ex:
FileName Creted Date
FILE001 01/08/2007
FILE005 ... (6 Replies)
Discussion started by: sbasetty
6 Replies
QwtScaleMap(3) Qwt User's Guide QwtScaleMap(3)
NAME
QwtScaleMap -
A scale map.
SYNOPSIS
#include <qwt_scale_map.h>
Public Member Functions
double invTransform (double i) const
QwtScaleMap & operator= (const QwtScaleMap &)
double p1 () const
double p2 () const
double pDist () const
QwtScaleMap (const QwtScaleMap &)
QwtScaleMap ()
double s1 () const
double s2 () const
double sDist () const
void setPaintInterval (int p1, int p2)
void setPaintXInterval (double p1, double p2)
void setScaleInterval (double s1, double s2)
void setTransformation (QwtScaleTransformation *)
int transform (double x) const
const QwtScaleTransformation * transformation () const
double xTransform (double x) const
~QwtScaleMap ()
Public Attributes
QT_STATIC_CONST double LogMax = 1.0e150
QT_STATIC_CONST double LogMin = 1.0e-150
Detailed Description
A scale map.
QwtScaleMap offers transformations from a scale into a paint interval and vice versa.
Constructor & Destructor Documentation
QwtScaleMap::QwtScaleMap ()
Constructor. The scale and paint device intervals are both set to [0,1].
QwtScaleMap::QwtScaleMap (const QwtScaleMap &other)
Copy constructor.
QwtScaleMap::~QwtScaleMap () Destructor
Member Function Documentation
double QwtScaleMap::invTransform (doublep) const [inline] Transform an paint device value into a value in the interval of the scale.
Parameters:
p Value relative to the coordinates of the paint device
See also:
transform()
QwtScaleMap & QwtScaleMap::operator= (const QwtScaleMap &other)
Assignment operator.
double QwtScaleMap::p1 () const [inline] Returns:
First border of the paint interval
double QwtScaleMap::p2 () const [inline] Returns:
Second border of the paint interval
double QwtScaleMap::pDist () const [inline] Returns:
qwtAbs(p2() - p1())
double QwtScaleMap::s1 () const [inline] Returns:
First border of the scale interval
double QwtScaleMap::s2 () const [inline] Returns:
Second border of the scale interval
double QwtScaleMap::sDist () const [inline] Returns:
qwtAbs(s2() - s1())
void QwtScaleMap::setPaintInterval (intp1, intp2)
Specify the borders of the paint device interval. Parameters:
p1 first border
p2 second border
void QwtScaleMap::setPaintXInterval (doublep1, doublep2)
Specify the borders of the paint device interval. Parameters:
p1 first border
p2 second border
void QwtScaleMap::setScaleInterval (doubles1, doubles2)
Specify the borders of the scale interval. Parameters:
s1 first border
s2 second border
Warning:
logarithmic scales might be aligned to [LogMin, LogMax]
void QwtScaleMap::setTransformation (QwtScaleTransformation *transformation) Initialize the map with a transformation
int QwtScaleMap::transform (doubles) const [inline] Transform a point related to the scale interval into an point related to the interval of
the paint device and round it to an integer. (In Qt <= 3.x paint devices are integer based. )
Parameters:
s Value relative to the coordinates of the scale
See also:
xTransform()
const QwtScaleTransformation * QwtScaleMap::transformation () const
Get the transformation.
double QwtScaleMap::xTransform (doubles) const [inline] Transform a point related to the scale interval into an point related to the interval
of the paint device
Parameters:
s Value relative to the coordinates of the scale
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Version 5.2.2 Mon Aug 1 2011 QwtScaleMap(3)