Search Results

Search: Posts Made By: ragavhere
1,436
Posted By ragavhere
Hi scottn, Cheers. It worked. Thanks a lot. ...
Hi scottn,

Cheers. It worked. Thanks a lot.

Regards,
Ragav.
1,436
Posted By ragavhere
Syntax error
Hi all,

I have problems in this piece if code. I am not able to figure out the exact problem.

set_load()
{
log "Setting load to ${1} status ..."
essmsh > ${load_log} 2>&1...
2,631
Posted By ragavhere
Thanks
Thanks.. It worked!!
2,631
Posted By ragavhere
error in insert statement
hi,

When i try to run the code below, i get the following error

"ksh: syntax error: `(' unexpected"

i am not able to figure it out. Can anyone help me?

Code:
16,816
Posted By ragavhere
Hi, Is the way i am connecting to DB2 right?
Hi,

Is the way i am connecting to DB2 right?
16,816
Posted By ragavhere
Is the script right?
Hi,

Is the way i am connecting to DB2 right?

if [ $ERROR_CD = 01 ]; then
db2output=`DB2 <<EOD
connect to <DB name> user <username> using <password>
insert into <schema.tablename>...
10,871
Posted By ragavhere
Whenever i run the code whatever file is in the...
Whenever i run the code whatever file is in the specified directory should get renamed and moved to the specified folder provided the file created date and time is older than the current date and...
10,871
Posted By ragavhere
Finding files older than the current date and time and renaming and moving
Hi,

I have a very urgent requirement here. I have to find all files in the specified directory but not in the sub directories(The directory name is stored in a variable) which are older than the...
16,816
Posted By ragavhere
Hi csorhand, I think DB2 instance is not set.
Hi csorhand,

I think DB2 instance is not set.
16,816
Posted By ragavhere
Unable to get the db2 command prompt in unix
Hi,

When i try to connect to the db2 database from unix solaris 5.8 version by typing "db2" from the .../sqllib/bin/ folder, i am not getting the db2 command prompt. Could anyone help me resolve...
5,538
Posted By ragavhere
Code
Try this
54,136
Posted By ragavhere
Code
Try this



This replaces "rr" with "yy" and replaces "12345" with "12555" in the entire file.

Regards,
Ragav.
3,456
Posted By ragavhere
formatting the output
Is it possible to convert the attached file to the format mentioned.




Here for a particular job the table name and the corresponding instance name from one test run "X" is compared with the...
3,413
Posted By ragavhere
Can you please explain the entire code??? ...
Can you please explain the entire code???

Regards
Ragav
3,413
Posted By ragavhere
Thanks. Can you please explain? Regards, ...
Thanks. Can you please explain?

Regards,

Ragav.
3,413
Posted By ragavhere
Deleting all occurences of a duplicate row
Hi,

I need to delete all occurences of the repeated lines from a file and retain only the lines that is not repeated elsewhere in the file. As seen below the first two lines are same except that...
1,868
Posted By ragavhere
Thanks. Can you please explain it? Regards, ...
Thanks. Can you please explain it?

Regards,

Ragav.
1,868
Posted By ragavhere
Appending the last few columns to the front
Hi

consider this as the first line
00010015 MORGAN STANLEY & CO INCORPORATED N 110 INVESTAR 1 0001OT NJ 201-830-5055 01-Jan-1974 00:00:00 1 01-May-2008 00:00:00 05-Jun-2008...
41,497
Posted By ragavhere
To check if the first character is a alphabet or number
Hi,

I need to find whether the first character in a line is a alphabet or a number. If its a number i should sort it numerically. If its a alphabet i should sort it based on the ASCII value.And if...
13,259
Posted By ragavhere
This there a way to do this using a cut command? ...
This there a way to do this using a cut command?

Because the columns to be cut will be there in another paramfile. I have fixed width file as well as pipe delimited file. In case of fixed width...
13,259
Posted By ragavhere
Cutting a portion of a line seperated by pipe delimiter
Hi,

In the below line

a|b|10065353|tefe|rhraqs|135364|5347575
dgd|rg|4333|fhra|grhrt|46423|urdsgd

Here i want to cut the characters in between the second and third pipe delimiter and then...
60,413
Posted By ragavhere
Cut command
Hi,

I want to cut from a particular position to a particular position and retain the rest.

I tried this

cut -c31-51 file1.txt > file2.txt

But The characters from the position 31 to 51...
10,625
Posted By ragavhere
Thanks a lot
Hi era,

Thanks a lot for your help.Especially for your patience.
10,625
Posted By ragavhere
perl -0777 -pi~ -e 's/ *\r?\n *(~|\d)/ $1/g; s/...
perl -0777 -pi~ -e 's/ *\r?\n *(~|\d)/ $1/g; s/ */ /g; s/:\s*(\d+)\s*(~|$)/: $1 $2/mg' file1.txt file2.txt
This is different from what u have given now

perl -0777 -pi~~ -e 's/:~/: ~/g; s/ *\n *-/...
10,625
Posted By ragavhere
After i ran your script perl -0777 -pi~ -e 's/...
After i ran your script
perl -0777 -pi~ -e 's/ *\r?\n *(~|\d)/ $1/g; s/ */ /g; s/:\s*(\d+)\s*(~|$)/: $1 $2/mg' file1.txt file2.txt
All lines were merged.But when i ran my comparison script which...
Showing results 1 to 25 of 79

 
All times are GMT -4. The time now is 01:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy