09-07-2018
Dear Aia,
Thank you for your last sentence. By the way, I did not understand the function of quiet.
if we do not use quiet, does it print out the grabbed data?
Finally, "double pipe" is the or logic operator, is that true?
Many thanks
Boris
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a list of id;
for example: file 1
dfghd
dfghe
dfgey
dfgeu
I have another data file that contain this ids as headers;
for ex. file2
>dfghd
gfdgfddl;klfkld;ld;lgl;dld'l'dv
>dfghe
gkwhjhsgdjdjdjhjddj
>dfgey
jdkjfhdjhfdkjhfdkhkdk
I wanted to compare file 1 and file 2... (1 Reply)
Discussion started by: Lucky Ali
1 Replies
2. Shell Programming and Scripting
This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord
but only one record is getting wrote in DB.... Please advise ASAP...:confused:
function InsertFtg
{
FTGSTR=""
echo "Saurabh is GREAT $#"
let... (2 Replies)
Discussion started by: omkar.sonawane
2 Replies
3. Shell Programming and Scripting
For some reason,
@logs is a list of log files
@filter is a list of expressions to grep out
foreach (@logs){
open READ, "<$_" or die $!;
@temp=<READ>;
close READ;
foreach (@filter){
print grep /$_/,@temp ;
}
}
returns a regex error in one of the files... (4 Replies)
Discussion started by: adelsin
4 Replies
4. UNIX Desktop Questions & Answers
Hi Guys,
I have a very limited knowledge on shell scripting.
When I execute dspmq, I get either
" Running" or "Running in Standby" as output
$dspmq
QM1 Running
QM2 Running as StandByI want my script to run only if the output of dspmq is "Running".
I executed the below... (6 Replies)
Discussion started by: vandi
6 Replies
5. Shell Programming and Scripting
Hello again,
Am having an issue now with getting a simple grep command to work within a function..
The function is as below...
function findRecord() {
output=grep "001" recordDatabase
echo $output
}
At the moment the "001"... (3 Replies)
Discussion started by: U_C_Dispatj
3 Replies
6. Shell Programming and Scripting
I'm putting together a script that will search my mail archives for emails that meet certain criteria and output the files to a text file.
I can manually cat that text file and pipe it into sendmail and it will work (i.e. cat /pathtofile/foo.txt | sendmail -t me@company.com)
My script sends... (7 Replies)
Discussion started by: binary-ninja
7 Replies
7. How to Post in the The UNIX and Linux Forums
I am using a grep command with two patterns in my KSH script. File has line breaks in it and both the patterns are in different lines. Here is the command - grep -l 'RITE AID.*ST.820' natriter820u.20140914
Pattern1 - RITE AID
Pattern2 - ST*820
I am not getting any results from this,... (3 Replies)
Discussion started by: Raghav Garg
3 Replies
8. UNIX for Dummies Questions & Answers
Hello
I am using a grep command with two patterns in my KSH script. File has line breaks in it and both the patterns are in different lines. Here is the command grep -l 'RITE AID.*ST.820' natriter820u.20140914
Pattern1 - RITE AID
Pattern2 - ST*820
I am not getting any results from... (24 Replies)
Discussion started by: Raghav Garg
24 Replies
9. Shell Programming and Scripting
The file starts like this:
Directory: <path to the script>
Script: <script fife name>
#!bin/ksh
##Comments
<actual script>
What is the use of the first two lines in the script? What if I save the file without them? What will be the effect? They are not comments. Im very new to this,... (4 Replies)
Discussion started by: remytom
4 Replies
10. Shell Programming and Scripting
Dear All.
I have a script, which process files one by one. In the script I have two functions.
one sftp files to different server
the other from existing file create file with different name.
My question is:
Will sftp function recognize files names , which are created in another... (1 Reply)
Discussion started by: digioleg54
1 Replies
NAN(3) BSD Library Functions Manual NAN(3)
NAME
nan, nanf, nanl -- quiet NaNs
LIBRARY
Math Library (libm, -lm)
SYNOPSIS
#include <math.h>
double
nan(const char *s);
float
nanf(const char *s);
long double
nanl(const char *s);
DESCRIPTION
The NAN macro expands to a quiet NaN (Not A Number). Similarly, each of the nan(), nanf(), and nanl() functions generate a quiet NaN value
without raising an invalid exception. The argument s should point to either an empty string or a hexadecimal representation of a non-nega-
tive integer (e.g., "0x1234".) In the latter case, the integer is encoded in some free bits in the representation of the NaN, which some-
times store machine-specific information about why a particular NaN was generated. There are 22 such bits available for float variables, 51
bits for double variables, and at least 51 bits for a long double. If s is improperly formatted or represents an integer that is too large,
then the particular encoding of the quiet NaN that is returned is indeterminate.
COMPATIBILITY
Calling these functions with a non-empty string isn't portable. Another operating system may translate the string into a different NaN
encoding, and furthermore, the meaning of a given NaN encoding varies across machine architectures. If you understood the innards of a par-
ticular platform well enough to know what string to use, then you would have no need for these functions anyway, so don't use them. Use the
NAN macro instead.
SEE ALSO
fenv(3), ieee(3), isnan(3), math(3), strtod(3)
STANDARDS
The nan(), nanf(), and nanl() functions and the NAN macro conform to ISO/IEC 9899:1999 (``ISO C99'').
BSD
December 16, 2007 BSD