I've searched the forum and google, but can't see an answer to this simple problem. Here's my small test script:
#!/bin/csh
echo "enter a number:"
read num
echo "you entered $num"
set num = `expr $num + 1`
echo new value is $num
can someone show me how to do this calculation? note that... (4 Replies)
Hi,
Im new to shell scripting. My task is to convert shell script feed into html, so basically I have a lot of information in shell script and I want to convert it html. I know you can simply convert the information by hand, but is there any simpler way? Thank you
Dave (3 Replies)
Hi All,
I am writing a shell script in which I want to convert a number like :
Suppose the number is "98487657" and we have to convert it to "98000000", what I want to do is to retain first 2 digits and convert all remaining digits to "0".
Number could be of any length (length... (4 Replies)
Hi,
Can anyone help me out to check whether the input argument is number?
Example:
REQUEST_ID="123456"
I need to check the REQUEST_ID value is number or string.
Thanks in Advance
Regards
BS (6 Replies)
Hi,
I have a log file, where i am required to identify the line number, where a particular string/line appears in the log file.
And then copy 200 lines above that line number to a new file.
Can someone provide pointers on how to write this script or what command to be used ?
Any... (2 Replies)
:confused:Please I really need help with an assignment question. I need to write a script that will take the input from a file and convert the number from Centigrade(Celcius) to Fahrenheit or vice versa. Thank you so much. I really need it to be detailed. Please remember the input comes from a file. (1 Reply)
I have a script which converts rows to columns.
file_name=$1
mailid=$2
#CREATE BACKUP OF ORIGINAL FILE
#cp ${file_name}.xlsx ${file_name}_temp.xlsx
#tr '\t' '|' < ${file_name}_temp.xlsx > ${file_name}_temp.csv
#rm ${file_name}_temp.xlsx
pivot_row=`head -1 ${file_name}`
sed 1d... (3 Replies)
Hi I am new in programming.
I have written a shell code, but i want to secure my code.
I have tried SHC. It is converting it to binary, but can be converted in plain text again by core dump.
I have tried to convert it in rpm by "rpmbuild -bb my.spec" option but the result is same.
... (4 Replies)
I have below code inside my awk script
if ( $0 ~ /SVC IN:/ )
{
svc_in=substr( $0,23 , 3);
if (msg_start == 1 && msg_end == 0)
{
msg_arr=$0;
}
}
else if ( $0 ~ /^SVC OUT:/ )
{
svc_out=substr( $0, 9, 3);
if (msg_start == 1 && msg_end == 0)
... (6 Replies)
Discussion started by: bhagya123
6 Replies
LEARN ABOUT DEBIAN
qwtscaletransformation
QwtScaleTransformation(3) Qwt User's Guide QwtScaleTransformation(3)NAME
QwtScaleTransformation -
Operations for linear or logarithmic (base 10) transformations.
SYNOPSIS
#include <qwt_scale_map.h>
Public Types
enum Type { Linear, Log10, Other }
Public Member Functions
virtual QwtScaleTransformation * copy () const
virtual double invXForm (double x, double p1, double p2, double s1, double s2) const
QwtScaleTransformation (Type type)
Type type () const
virtual double xForm (double x, double s1, double s2, double p1, double p2) const
virtual ~QwtScaleTransformation ()
Detailed Description
Operations for linear or logarithmic (base 10) transformations.
Constructor & Destructor Documentation
QwtScaleTransformation::QwtScaleTransformation (Typetype)
Constructor for a linear transformation.
QwtScaleTransformation::~QwtScaleTransformation () [virtual]
Destructor.
Member Function Documentation
QwtScaleTransformation * QwtScaleTransformation::copy () const [virtual]
Create a clone of the transformation.
double QwtScaleTransformation::invXForm (doublep, doublep1, doublep2, doubles1, doubles2) const [virtual]
Transform a value from the coordinate system of the paint device into the coordinate system of a scale. Parameters:
p Value related to the coordinate system of the paint device
p1 First border of the coordinate system of the paint device
p2 Second border of the coordinate system of the paint device
s1 First border of the coordinate system of the scale
s2 Second border of the coordinate system of the scale
Returns:
linear mapping:
s1 + ( s2 - s1 ) / ( p2 - p1 ) * ( p - p1 );
log10 mapping:
exp((p - p1) / (p2 - p1) * log(s2 / s1)) * s1;
QwtScaleTransformation::Type QwtScaleTransformation::type () const [inline] Returns:
Transformation type
double QwtScaleTransformation::xForm (doubles, doubles1, doubles2, doublep1, doublep2) const [virtual]
Transform a value from the coordinate system of a scale into the coordinate system of the paint device. Parameters:
s Value related to the coordinate system of the scale
s1 First border of the coordinate system of the scale
s2 Second border of the coordinate system of the scale
p1 First border of the coordinate system of the paint device
p2 Second border of the coordinate system of the paint device
Returns:
linear mapping:
p1 + (p2 - p1) / (s2 - s1) * (s - s1);
log10 mapping:
p1 + (p2 - p1) / log(s2 / s1) * log(s / s1);
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Version 5.2.2 Mon Aug 1 2011 QwtScaleTransformation(3)