I am trying to transpose tables listed in the format into format. Any help would be greatly appreciated.
Input:
test_data_1
1 2 90%
4 3 91%
5 4 90%
6 5 90%
9 6 90%
test_data_2
3 5 92%
5 4 92%
7 3 93%
9 2 92%
1 1 92%
...
Output:... (7 Replies)
Hi
I need to calculate the number of occurrences of a item in a number of files using Perl.
The item appears continually throughout the files but in each case I only want to calculate it in certain blocks of the file.
Example - Calculalte the number of occurrences of a 'pass' in a block of... (0 Replies)
Hi ,
I have input file and i want to extract below strings
<msisdn xmlns="">0492001956</ msisdn> => numaber inside brackets
<resCode>3000</resCode> => 3000 needs to be extracted
<resMessage>Request time
getBalances_PSM.c(37): d out</resMessage></ns2:getBalancesResponse> => the word... (14 Replies)
Hi
I need to write a bash script to take the data stored in 3 oracle tables .. and filter them and store the results in a csv file.
It is an Oracle database
Thank you (1 Reply)
Hi All,
I have a huge matrix file consisting some some millions rows and 6000 columns. The contents are just floating point numbers in the matrix. I want to extract each column (i.e. 6000 of them) and store each column in a separate file.
For example, 1.dat will consist of elements from column... (4 Replies)
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
I am trying to compare the data in lines 3 & 5 to see if they match up to the '-S570' (see first code set, all proprietary information has been removed from code set)
spawn telnet
Trying ...
Connected to CA-LOS1234-ASE-S570.cl .
Escape character is '^]'.
CA-LOS1234-ASE-S570
Username: ... (1 Reply)
HI
I have a dsv file that looks like:
<<BOF>>
record_number|id_number|first name|last name|msisdn|network|points|card number|gender
312|9101011234011|Test Junior|Smith|071 123 4321|MTN|73|1241551413214444|M
313|9012023213011|Bob|Smith|27743334321|Vodacom|3|1231233232323244|M... (4 Replies)
Discussion started by: tera
4 Replies
LEARN ABOUT PHP
maxdb_connect
MAXDB_CONNECT(3) 1 MAXDB_CONNECT(3)maxdb_connect - Open a new connection to the MaxDB server
Procedural style
SYNOPSIS
resource maxdb_connect ([string $host], [string $username], [string $passwd], [string $dbname], [int $port], [string $socket])
DESCRIPTION
Object oriented style
maxdb::__construct ([string $host], [string $username], [string $passwd], [string $dbname], [int $port], [string $socket])
The maxdb_connect(3) function attempts to open a connection to the MaxDB Server running on $host which can be either a host name or an IP
address. Passing the string "localhost" to this parameter, the local host is assumed. If successful, the maxdb_connect(3) will return an
resource representing the connection to the database or FALSE on failure.
The $username and $password parameters specify the username and password under which to connect to the MaxDB server. If the password is
not provided (the NULL value is passed), the MaxDB server will attempt to authenticate the user against the $maxdb.default_pw in php.ini.
The $dbname parameter if provided will specify the default database to be used when performing queries. If not provied, the entry
$maxdb.default_db in php.ini is used.
The $port and $socket parameters are ignored for the MaxDB server.
RETURN VALUES
Returns a resource which represents the connection to a MaxDB Server or FALSE if the connection failed.
EXAMPLES
Example #1
Object oriented style
<?php
$maxdb = new maxdb("localhost", "MONA", "RED", "DEMODB");
/* check connection */
if (maxdb_connect_errno()) {
printf("Connect failed: %s
", maxdb_connect_error());
exit();
}
printf("Host information: %s
", $maxdb->host_info);
/* close connection */
$maxdb->close();
?>
Example #2
Procedural style
<?php
$link = maxdb_connect("localhost", "MONA", "RED", "DEMODB");
/* check connection */
if (!$link) {
printf("Connect failed: %s
", maxdb_connect_error());
exit();
}
printf("Host information: %s
", maxdb_get_host_info($link));
/* close connection */
maxdb_close($link);
?>
The above example will output something similar to:
Host information: localhost
PHP Documentation Group MAXDB_CONNECT(3)