I want to automate the process of generating RSA keys. I want to remotley login to a linux machine from a windows maching without having to enter a password. For this I need to generate the RSA key pair. but I want to do this procedure on alot of linux machines. For which I was looking to automate... (2 Replies)
if the key (A or B or ...others) has 4 in its 3rd column the 1st A row has to form 4 dupicates along with the all the values of A in 4th column (2.9, 3.8, 4.2) .
Hope I explain the question clearly.
Cheers
Ruby
input
"A" 1 4 2.9
"A" 2 5 ... (7 Replies)
Hi ,
I have a CSV file that has around 50K records in it. I have to delete all the duplicate rows from the file except one, depending upon data in column4.
Lets say there are 3 rows for 'column4data' in the file. I have to retain only that line which has the smallest date value in column2.... (3 Replies)
I have a text file with 1,000,000 rows (It is a single column text file of numbers). I would like to separate the text file into 100 files of equal size (i.e. number of rows). The first file will contain the first 10,000 rows, the second row will contain the second 10,000 rows (rows 10,001-20,000)... (2 Replies)
Hello all,
I am setting up a cluster of Mac Pro's which need to be able to talk to a master computer, traffic between the nodes and the master needs to take place without a ssh key. I need a script that will create a security key, save it to the default place, enter the password as no password.... (2 Replies)
Hi experts,
e.g.
i/p data looks like
0000xm7zcNDIkP888vRqGv93xA7:176n00qql||9700005405552747,9700005405717924,9700005405733788|unidentified,unidentified,unidentified||
o/p data should like -
row1: 0000xm7zcNDIkP888vRqGv93xA7:176n00qql||9700005405552747|unidentified
... (1 Reply)
A text file has two logs of same event & both logs have to be correlated into a single line before same can be processed further
RAW
RunningLog
Date Month Year Time Event
9 JUN 2013 1932 2
10 JAN 2014 1000 4
Duration Closed
... (10 Replies)
I have a shell script that is currently transferring a csv file from a server into a Teradata database table. One of the 30 or so columns is called "destination_url". In that URL there are parameters, and it is possible for those parameters to be repeated because of referring companies copying... (3 Replies)
I have data such as below where the value in second field is the same as that in the row after.
123456,22222,John,0,xyz
234567,22222,John1,1,cde
43212,3333,Jean,3,pip
84324,3333,Abel,2,cat
I'd like to rearrange the output like below to put such records beside each other and separated with... (5 Replies)
Team,
I am having requirement to convert rows to columns
Input is:
key ,count, id1, pulse1, id2, pulse2 ,id3, pulse3
12, 2 , 14 , 56 , 15, 65
13, 3, 12, 32, 14, 23, 18, 54
22, 1 , 32, 42
Expected Out put:
key, id,pulse
12, 14, 56
12, 15, 65
13 ,12, 32
13, 14 ,23
13, 18 ,54
22 ,32,... (3 Replies)
Discussion started by: syam1406
3 Replies
LEARN ABOUT MOJAVE
uri::queryparam
URI::QueryParam(3) User Contributed Perl Documentation URI::QueryParam(3)NAME
URI::QueryParam - Additional query methods for URIs
SYNOPSIS
use URI;
use URI::QueryParam;
$u = URI->new("", "http");
$u->query_param(foo => 1, 2, 3);
print $u->query; # prints foo=1&foo=2&foo=3
for my $key ($u->query_param) {
print "$key: ", join(", ", $u->query_param($key)), "
";
}
DESCRIPTION
Loading the "URI::QueryParam" module adds some extra methods to URIs that support query methods. These methods provide an alternative
interface to the $u->query_form data.
The query_param_* methods have deliberately been made identical to the interface of the corresponding "CGI.pm" methods.
The following additional methods are made available:
@keys = $u->query_param
@values = $u->query_param( $key )
$first_value = $u->query_param( $key )
$u->query_param( $key, $value,... )
If $u->query_param is called with no arguments, it returns all the distinct parameter keys of the URI. In a scalar context it returns
the number of distinct keys.
When a $key argument is given, the method returns the parameter values with the given key. In a scalar context, only the first
parameter value is returned.
If additional arguments are given, they are used to update successive parameters with the given key. If any of the values provided are
array references, then the array is dereferenced to get the actual values.
$u->query_param_append($key, $value,...)
Adds new parameters with the given key without touching any old parameters with the same key. It can be explained as a more efficient
version of:
$u->query_param($key,
$u->query_param($key),
$value,...);
One difference is that this expression would return the old values of $key, whereas the query_param_append() method does not.
@values = $u->query_param_delete($key)
$first_value = $u->query_param_delete($key)
Deletes all key/value pairs with the given key. The old values are returned. In a scalar context, only the first value is returned.
Using the query_param_delete() method is slightly more efficient than the equivalent:
$u->query_param($key, []);
$hashref = $u->query_form_hash
$u->query_form_hash( \%new_form )
Returns a reference to a hash that represents the query form's key/value pairs. If a key occurs multiple times, then the hash value
becomes an array reference.
Note that sequence information is lost. This means that:
$u->query_form_hash($u->query_form_hash);
is not necessarily a no-op, as it may reorder the key/value pairs. The values returned by the query_param() method should stay the
same though.
SEE ALSO
URI, CGI
COPYRIGHT
Copyright 2002 Gisle Aas.
perl v5.18.2 2012-03-11 URI::QueryParam(3)