02-13-2016
Not sure I understand your problem. Posting some representative sample always helps!
For the comparison, use the == operator, not the assignment = .
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Friends,
Is it possible to return an array from a user defined function in awk ?
example:
gawk '
BEGIN{}
{
catch_line = my_function(i)
print catch_line
print catch_line
print catch_line
}
function my_function(i)
{
print "echo"
line= "awk"
line= "gawk"... (2 Replies)
Discussion started by: user_prady
2 Replies
2. Shell Programming and Scripting
Hello. I just found out about awk, and it appears that this could handle the problem I'm having right now.
I first stumbled on the thread How to extract first and last line of different record from a file, and that problem is almost similar to mine.
In my case, an ASCII file will contain the... (0 Replies)
Discussion started by: Gonik
0 Replies
3. Shell Programming and Scripting
Hello,
I am newbie in awk. I have just started learning it.
1) I have input file which looks like:
{4812 4009 1602 2756 306} {4814 4010 1603 2757 309} {8116 9362 10779 }
{10779 10121 9193 10963 10908} {1602 2756 306 957 1025} {1603 2757 307}
and so on.....
2) In output:
a)... (10 Replies)
Discussion started by: kajolo
10 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I've done hours of reading on google and can't find an answer...
I'm trying to compile/install the Apache web server on a Unix vm.
When i try ./compile (the file's been unzipped already), I get this error:
$ ./configure
checking for chosen layout... Apache
checking for working mkdir... (8 Replies)
Discussion started by: eddlo
8 Replies
5. Shell Programming and Scripting
Hi,
I have got two variables holding strings, if i echo them, they print the same value but if i compare the condition fails?? can somebody suggest something?? I have checked the word count too, they are also same.
Thanks,
Atul (4 Replies)
Discussion started by: atulmt
4 Replies
6. Programming
In C programming how do i check if a char is equal to a vowel , like a e i o or u, small or big case.
in my function i have the parameter like *word, and i am using word in a for loop, to check if its equal. i use tolower(word)=='a' || .....
but for some reason it only matches on lower case and... (1 Reply)
Discussion started by: omega666
1 Replies
7. Solaris
On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help
here is what i get when i check for system date
infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date
Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies
8. Shell Programming and Scripting
Hi,
I wasn't quite sure how to title this one! Here goes:
I have some already partially parsed log files, which I now need to extract info from. Because of the way they are originally and the fact they have been partially processed already, I can't make any assumptions on the number of... (8 Replies)
Discussion started by: chrissycc
8 Replies
9. Shell Programming and Scripting
The awk below is supposed to count all the matching $5 strings and count how many $7 values is less than 20. I don't think I need the portion in bold as I do not need any decimal point or format, but can not seem to get the correct counts. Thank you :).
file
chr5 77316500 77316628 ... (6 Replies)
Discussion started by: cmccabe
6 Replies
10. UNIX for Beginners Questions & Answers
Hello all, I can get close to what I am looking for but cannot seem to hit it exactly and was wondering if I could get your help.
I have the following sample from textfile with many thousands of lines: File 1
PS001,001 HLK
PS002,004 L<G
PS004,002 XNN
PS004,006 BVX
PS004,006 ZBX=... (7 Replies)
Discussion started by: jvoot
7 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)