12-30-2013
Hi Don,
Thanks for your sample script. So if I understand it right, caseless comparision cannot be done just by any combinations of [Yy] right?
Only way to do using test command or single brace [] is to use or operator and no combination of [Yy] would work?
is that right?
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can convert a Lower case variable value to an upper case in the kron shell script. (3 Replies)
Discussion started by: dchalavadi
3 Replies
2. Shell Programming and Scripting
in If statement how can i campare
"ASCII" with "ascii"
the result of comparision shold be true..... (2 Replies)
Discussion started by: mahabunta
2 Replies
3. Shell Programming and Scripting
What awk command will test a string to determine if it is a valid file name?
With the following awk statement I isolate the lines from the inputfile that might contain a filename, then I attempt to test the possible filename which is always in $4 from each line. However it is not working at all... (4 Replies)
Discussion started by: Arsenalman
4 Replies
4. Shell Programming and Scripting
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Discussion started by: Max89
1 Replies
5. Shell Programming and Scripting
How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies
6. Shell Programming and Scripting
I have a string like ab or abc of whatever length. But i want to know whether another string ( for example, abcfghijkl, OR a<space> bcfghijkl ab<space> cfghijkl OR a<space>bcfghijkl OR ab<space> c<space> fghijkl ) starts with ab or abc... space might existing on the longer string... If so, i... (1 Reply)
Discussion started by: nram_krishna@ya
1 Replies
7. Shell Programming and Scripting
I want to compare two strings using awk dynamically without trimming the spaces and want to find the count of matching string.
Input Strings file:
File1 content (file1):
" a "
" a2 "
File2 content (file2):
" a "
" a "
" a2 "
" b2 "
" c2 "... (3 Replies)
Discussion started by: AhmedLakadkutta
3 Replies
8. Shell Programming and Scripting
Hi,
I have a Python unit test cases source code file which contains more than a hundred test case methods. In that, some of the test case methods already have prefix 'test' where as some of them do not have. Now, I need to add the string 'test' (case-sensitive) as a prefix to those of the... (5 Replies)
Discussion started by: royalibrahim
5 Replies
9. Shell Programming and Scripting
Hi All,
my requirement is first search the line and updated stg value with the user input value.
ws.rsp.url=https://rt930.rsp-stg.cb.info53.com/RSP/RAFT^M
stg is not fixed string it may varies.So i used the below command for it
rsp=`cat properties | grep ^ws.rsp.url= | awk -F"/"... (1 Reply)
Discussion started by: bhas85
1 Replies
10. Shell Programming and Scripting
Hi ! :)
I made this :
#!/bin/bash
rsa_dir="/etc/openvpn/easy-rsa/"
rsa_key_dir="/etc/openvpn/easy-rsa/keys/"
ccd_dir="/etc/openvpn/ccd/"
regex_special_char=''
cd $rsa_dir
while
read -p "Please can you enter the vpn's username : " username
] || ] || ] || ]
do
echo "Your entry... (10 Replies)
Discussion started by: Arnaudh78
10 Replies
LEARN ABOUT DEBIAN
qwtintervalsample
QwtIntervalSample(3) Qwt User's Guide QwtIntervalSample(3)
NAME
QwtIntervalSample -
A sample of the types (x1-x2, y) or (x, y1-y2)
SYNOPSIS
#include <qwt_series_data.h>
Public Member Functions
QwtIntervalSample ()
QwtIntervalSample (double, const QwtInterval &)
QwtIntervalSample (double value, double min, double max)
bool operator== (const QwtIntervalSample &) const
bool operator!= (const QwtIntervalSample &) const
Public Attributes
double value
QwtInterval interval
Detailed Description
A sample of the types (x1-x2, y) or (x, y1-y2)
Constructor & Destructor Documentation
QwtIntervalSample::QwtIntervalSample () [inline] Constructor The value is set to 0.0, the interval is invalid
QwtIntervalSample::QwtIntervalSample (doublev, const QwtInterval &intv) [inline]
Constructor.
QwtIntervalSample::QwtIntervalSample (doublevalue, doublemin, doublemax) [inline]
Constructor.
Member Function Documentation
bool QwtIntervalSample::operator!= (const QwtIntervalSample &other) const [inline]
Compare operator.
bool QwtIntervalSample::operator== (const QwtIntervalSample &other) const [inline]
Compare operator.
Member Data Documentation
QwtInterval QwtIntervalSample::interval
Interval.
double QwtIntervalSample::value
Value.
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Version 6.0.0 Fri Apr 15 2011 QwtIntervalSample(3)