Yes. My bad for not being specific. I was just posting how to extract the variable.
I was thinking loop over the file with an array..
pseudo (untested)
I'm confused: Are you briandanielz or are you ajayram_arya? Both of you seem to be answering questions about what is wanted and posting very similar segments of code that you're using to solve parts of the problem.
Shell array sizes in both ksh and bash are limited. Since your input is a "huge file", the shell array limits may be your problem.
What are you going to do with the array after you have processed your "huge file"? Can't you instead process the data from each line in your huge file as you find it without keeping a list of that data from all of the lines you've processed in an array?
Hello to all,
Does anyone know the solution ?
Two strings A and B are present. I want to check whether B is a Substring of A.
1. The value of A is - 29 * * * /bin/ls "test" "tmp*" "log*"
(Note: Pl note that A contains DOUBLEQUOTES, ASTERISK & FRONTSLASH)
2. The value of B is -... (5 Replies)
I'm not very familiar with the ssh command. When I tried to set a variable and then echo its value on a remote machine via ssh, I found a problem. For example,
$ ITSME=itsme
$ ssh xxx.xxxx.xxx.xxx "ITSME=itsyou; echo $ITSME"
itsme
$ ssh xxx.xxxx.xxx.xxx 'ITSME=itsyou; echo $ITSME'
itsyou
$... (3 Replies)
Hi guys, I have a sed line in double quotes which works fine, but I want it to be in single quotes
here is the sed line
sed "/abc_def/s/\'.*\'/\'\${abc_def}\'/"
can some one give the equivalent to the above script in single quotes
Thanks a ton (5 Replies)
Unix superusers,
I am new to unix but would like to learn more about grep. I am very familiar with regular expressions as i have used them for searching text files in windows based text editors. Since I am not very familiar with Unix, I dont understand when one should use GREP with the... (2 Replies)
i want extract where the 2nd column having "3" or "7".
Based on the forums tried like this but it is not working
awk -F"," '$2=3;$2=7 {print}' filename
Source
"1","2","3","4"
"1","3","3","4"
"1","7","3","4"
"1","8","3","4"
"1","2","3","4"
"1","2","3","4"
Output :
... (5 Replies)
Hi,
Trying to change the prompt. I have the following code.
export PS1='
<${USER}@`hostname -s`>$ '
The hostname is not displayed
<abc@`hostname -s`>$ uname -a
AIX xyz 1 6 00F736154C00
<adcwl4h@`hostname -s`>$
If I use double quotes, then the hostname is printed properly but... (3 Replies)
I have a text file where each field is enclosed in double quotes and separated by a comma.
But in certain rows we have embedded double quotes within column data
For e.g
"""TRUSPICE CENTRE"" CLAYTON AU"
The above value is for a single column but there are embedded quotes within... (2 Replies)
Hi All,
I'm stuck-up in finding a way to skip the delimiter which come within double quotes using awk or any other better option. can someone please help me out.
Below are the details:
Delimited: |
Sample data: 742433154|"SYN|THESIS MED CHEM PTY.... (2 Replies)
Hi All,
I'm unable to load the data using sql loader where there are double quotes within the double quotes As these are optionally enclosed by double quotes.
Sample Data :
"221100",138.00,"D","0019/1477","44012075","49938","49938/15043000","Television - 22" Refurbished - Airwave","Supply... (6 Replies)
Please use code tags
Hi,
I have input data is below format and n of column in the multiple flat files. the string data has any double quotes(") values replaced to double double quotes for all the columns{"").
Also, my input flat file each column string data has carriage of new line too.... (14 Replies)
Discussion started by: SSrini
14 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)