Hello All,
This is my first script in PERL. Hence require your help in moving further.
I have a script which should populate the values for Today, Yesterday output.
For which I use timeFrame as a variable to obtain the time in hrs:mm as 10:00.
All I want is, I want my timeFrame to start with 00:00 and end with with my current timestamp.
Hi All
I want to have a Perl script which convert columns to rows.
The Perl should should read the data from input file.
Suppose the input file is
Code:
7215484
date to date
173.3
A
1.50
2.23
8.45
10.14
2.00
4.50
2.50
31.32
7216154
month to month
182.7
A
1.50
2.36
8.91
10.69
2.00
4.50
4.16
34.11
7216184
case to case
179.6
A
1.50
2.32
8.76
10.51
2.00
4.50
4.16
33.75
7216254
done with no error
Hi All
I have a doubt and want to be cleared I am using
Code:
@array = (10, 20);
$rarray = \@array;
#print "$rarray\n";
#print "@$rarray\n";
$rr= \$array[0];
#print $$rr;
$rr++;
print $$rr;
As you can see the $rr contains the reference to the first element of the array , now as the definition say array contains the continuous memory location
Hi All
I have a doubt and want to be cleared I am using
Code:
@array = (10, 20);
$rarray = \@array;
#print "$rarray\n";
#print "@$rarray\n";
$rr= \$array[0];
#print $$rr;
$rr++;
print $$rr;
As you can see the $rr contains the reference to the first element of the array , now as the definition say array contains the continuous memory location
I'm looking for a way to have the "date" command output the date in a specific format.
I'm not familiar with the different ways to use the date command at all.
Hi All,
This is my first post!! :)
How to store huge data in a single variable in csh.
Right now i can store upto ~700kb of data. I still want to store more data and i dont want to use perl.
Is there any method to store like that...Please let me know..
Thanks
Hi guys,
First of all, I would like to say this is my first post in the unix.com forums.
I am new to ksh scripting, specially array.
I have a CSV file with date time formatted like this:
8/2/2012 1:34:01 PM
I need to find all the occurrences (probably regex) of such date and convert it (in file) to mysql default datetime format (2012-08-02 13:34:01).
I found that
date --date="8/2/2012 1:34:01 PM" +"%F %T"
is working properly and I'm getting correct result.