Hello All
I have the string below:
Red Cross, CPR – life support, completed
I have managed to put the string in an array separated by comma.
My goal is to do three things:
1)use the default value in third element of the array, else use “completed”
if ($array[0] eq ?)...
Somewhat embarrassed to ask this question:
Could anyone tell me why the comment is not evaluating
if (($array[5] eq "FULL TIME") && ($array[11] eq "BCGE2")){
$array[5] = "ARREARS";
$array[11] = "ARREARS";
print "The element 5th is now $array[5] \n" ; #This is not comming out at all.
print "The...
Can any one advise of a place to download the following files:
cpp-2.96-108.1.i386.rpm
glibc-devel-2.2.4-26.i386.rpm
kernel-headers-2.4.9-e.3.i386.rpm
gcc-2.96-108.1.i386.rpm
binutils-2.11.90.0.8-12.i386.rpm
thank you.
Hello All,
I have a file(loaddata.dat) with the following sample record below:
Here are some facts about current line formart.
-There are three lines, like below, for each employee.
-each line for each employee always begins with (2 spaces) RWP20004.
-each line for each emoployee always ends...
Hello All,
I have a file, inputfile, containing the following records:
200095,,,3/6/2003,OTHER^M,3.75,,,3.75
200095,,,5/2/2003,VACATION^M,3.75,,,3.75
200095,,,6/2/2003,VACATION^M,15,,,15
I was wondering if there is script that I could use to take out the carriage return ^M from each record...
Hello All,
I have a file (levln_ac_in.txt) with the following sample record format:
200159,,,3/21/1996,3/22/1996,,VACATION,VAC.TAKEN OTHER GRPS,,15,,,0
I am trying to extract the contents of the 8th column of each record of file levln_ac_in.txt and put it in an output file levln_dt_in.txt...
Hello All,
I have a file with the following records:
Jasmin,Long ,23$45 ,1234A, MATLV, 0, 3
David ,Malow, 3328$,7765B, CRTLV, 2, 4
.
.
.
.
Susan ,Hagen, $8699 ,87564, VACLV, 0, 5
My aim is to have output file that has the following:
#The whole records in the file have to be put in an array...
I have these file containing the folowwing records:
Lai Phat 37739 jdsk876
Dema Koheen 346747 jsdfjkla990
Lar Solomon 484848 jfsaj898
When I do wc -l file1, it reports 5 records. Thereby counting the line-space before and after "Dema Koheen 346747 jsdfjkla990" as record lines.
I was...
Hello all,
I am trying to install 10g on Linux 9x, Here is the response after trying to run ./runInstaller as oracle:
Checking operating system verison....
Passed
All installer requirements met
Preparing to lunch Oracle Universal Installer from /tmp/OraInstall*. Please wait.....error...
Hi All,
All I want to do is change the decimal value of 3rd element in my array records.
Here is my inpu records:
al green 00.0000
jesse cal 02.00
laura Morgan 20.0
My expected output should look like the following:
al green 0.0000
jesse cal 2.0000
laura Morgan 20.0000
Here is my effort...
Hello All, I am trying to write sql to achive the following.
I have a table1 with the following columns:
Employee ID
Name
Plan
Type
Sample of records in the table are the following:
2067,Janice,LIFE,Y -------record 1
2067,Janice,MSP,Y -------record 2
2045,Enry,LIFE,Y -------record 3...
I have an input file (pers_in.txt) with the following records:
2067,Janice,LIFE,Y -------record 1
2067,Janice,MSP,Y -------record 2
2045,Enry,LIFE,Y -------record 3
2045,Enry,OPT,N -------record 4
2345, Louis,MSP,N -------record 5
2345, Louis,OPT,N -------record 6
My purpose is to put it in...
Hello All,
I am currently researching the following issues, and I was wondering if anyone has an input.
Basically, I have the following records ( with four fileds each, fileds 3 and 4 have varying lenght):
Jamie,Foxx,09,765
Look,Mann,87,5987
The projected output records should be...
I have this array, and I am trying to change the value of the 4th element. Here is my code:
chomp($array[3]);
if ($array[3] = 'BRO.IN LAW') {
$array[3]= "Brother-in-law";
chomp($array[3]);
print "The new value is $array[3] \n";
}
However, it chages the values to "Brother-in-law" for all the 4th...
Hello All,
Could anyone help in writting a bash scripts to compare the contents of two files.
file1 (has this records)
2345
re890
23499
file2 (has this records)
2345
Re890
23500
I would like to compare the contents of the two files one line at time and output file3 which should have the...
Hello All,
I am stumped here, and your help would be appreciated.
Here are the sample records I am trying to insert:
201110,MABBOTT-LATE, GERRY,777 634 6363
288867,MAINSCOUGH, LARRY,867 756 7563
Here is the description of my table:
SQL> desc TRANS_PERS_TEMP;
Name Null? Type...
Could anyone help with the date manip function:
Basically, I am trying to change Date from MM/DD/YYYY(05/01/2003)TO 01-May-2003
use Date::Manip;
my $input_date ;
my $ouput_date ;
my $datestr ;
my $date ;
$input_date = "02/03/2003" ;
#use Date::Manip qw(ParseDate $input_date);
$datestr =...
I am writting Linux script withing a perl program.
I intend to make the following changes in Linux in line HERE HERE HERE HERE HERE (below), I was wondering if you could tell me how:
Changing strings and date - change JAMES LOOKMAN to James Lookman, and date - 12/23/2003 to 23-Dec-2003. Any...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.