Assuming the 'select from table' example actualy reads out a table, it still compares the whole list/string with the number of lines from scrcnt.
At its best, you'd get a single "Mismatch" into your logfile.
Basic saying:
Try looping through each list element and compare it witch each table element.
Like in:
EDIT:
Or as i see with multiple srcnt files:
hth
I have a output of a command like this.
the command is : bdf|sed '/^e/d'|awk '{print$2/1048576}'
output :
0
0.515625
0.481979
2
2
2
7.8125
4
2
0.488281
7.8125
3.90625
4
1.95312
1
0.488281 (4 Replies)
Hello,
I have a shell script that is used as follows:
./script -s <Oracle_server_name>
the script returns several lines in this format:
parameter name required value Current Value comments
--------------- ------------- -------------- ---------
My objective now is to compare 2... (1 Reply)
Hello,
I have two strings those are outputs of two echo commands:
$ logslist=`ls -1rt vp_lb_indv*.log | tail -1`; tail -7 $logslist | head -1
ERROR: Errors printed on pages 5,22.
$ logslist=`ls -1rt vp_lb_indv*.log | tail -1`; errpages=`tail -7 $logslist | head -1`; echo... (3 Replies)
Hi,
I am trying to sort and display the below(like) input using awk command:
Input:
------
0;A
4;A
5;A
33;A
45;A
0;B
4;B
5;B
33;B
45;B
Output (desired): (5 Replies)
hi friends,
The code:
i=1
while
do
filename=`/usr/bin/ls -l| awk '{ print $9}'`
echo $filename>>summary.csv
#Gives the name of the file stored at column 9
count=`wc -l $filename | awk '{print $1}'`
echo $count>>summary.csv
#Gives just the count of lines of file "filename"
i=`expr... (1 Reply)
Disclaimer: OP is 100% Awk beginner.
I use this code on ASCII files I need to report against.
awk 'BEGIN {
tokens = 0
tokens = 0
tokens = 0
}
{ for (token in tokens)
{ if ($1 == token){print $0; tokens++;}}}
END {for (token in tokens){
if( tokens ==... (1 Reply)
In shell script i have two variables with value
debit_sal="DOG,HIU,JIU,GYT,PPI,KIU,HUY........."
debit_req='HIU, JIU, HUY, GTR, KOI, ............"
i stored this two in two array
arr=$(echo $debit_sal| tr "," "\n");
arr1=$(echo $debit_req| tr ", " "\n"); #(note second arry has comma with... (5 Replies)
NEVERMIND.... "$TIME" did the trick... stupid me. :o
Hi,
I know that this must be something pretty dumb but I cant figure it out myself.
I have this:
#!/bin/bash
TIME="Time: 20120611"
FILE=file.log
grep $TIME $FILE
And I get the following output:
file.log:Time: 20120611... (2 Replies)
I run cygwin on windows 7, and have been using the windows command line. I've been trying to gunzip some previously compressed large sequence output files in .txt.gz format. This worked for about the first 10 files and then for the rest of them the file (as viewed using the 'head' command) is... (1 Reply)
I hope I can explain this correctly. I am using Bash-4.2 for my shell.
I have a group of file names held in an array. I want to compare the names in this array against the names of files currently present in a directory. If the file does not exist in the directory, that is not a problem.... (5 Replies)
Discussion started by: BudMan
5 Replies
LEARN ABOUT PHP
ifx_htmltbl_result
IFX_HTMLTBL_RESULT(3) 1 IFX_HTMLTBL_RESULT(3)ifx_htmltbl_result - Formats all rows of a query into a HTML tableSYNOPSIS
int ifx_htmltbl_result (resource $result_id, [string $html_table_options])
DESCRIPTION
Formats and prints all rows of the $result_id query into a HTML table.
PARAMETERS
o $result_id
-$result_id is a valid resultid returned by ifx_query(3) or ifx_prepare(3) (select type queries only!).
o $html_table_options
- This optional argument is a string of <table> tag options.
RETURN VALUES
Returns the number of fetched rows, or FALSE on errors.
EXAMPLES
Example #1
Informix results as HTML table
<?php
$rid = ifx_prepare ("select * from emp where name like " . $name,
$connid, IFX_SCROLL);
if (! $rid) {
/* ... error ... */
}
$rowcount = ifx_affected_rows ($rid);
if ($rowcount > 1000) {
printf ("Too many rows in result set (%d)
<br />", $rowcount);
die ("Please restrict your query<br />
");
}
if (! ifx_do($rid)) {
/* ... error ... */
}
ifx_htmltbl_result ($rid, "border="2"");
ifx_free_result($rid);
?>
PHP Documentation Group IFX_HTMLTBL_RESULT(3)