Search Results

Search: Posts Made By: rdhanek
1,809
Posted By rdhanek
How to identify the scripts ran at a particular day of last month?
How to identify the scripts ran at a particular day of last month?
I have to identify a script that ran on 06/01/2011 @ 4 am
2,839
Posted By rdhanek
I tried the code beloe.Getting Internal server...
I tried the code beloe.Getting Internal server error.

<
<html>
<head>
<title>xxxxxxxxxxxxxx</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<%
### Load...
2,839
Posted By rdhanek
How can we hardcode TNS_ADMIN?
How can we hardcode TNS_ADMIN?

When i try to connect to db with the code below..i get TNS issue. So wpndering if i can hardcode TNS..


<html>
<head>
<title>xxxxxxxxxxxxxx</title>
<meta...
2,331
Posted By rdhanek
How to remove characters enclosed in single quotes?
How to remove characters enclosed in single quotes?

My data is something like this


(03/22/2011 08:17:26.650) : ( -> '1' -> '1-1-3' -> '6' -> '1' -> 'SALMOR58BB4' aaaaa bbbbbb ccccc...
2,531
Posted By rdhanek
hi .. i use the -f "ht<hn@abc.com (hn@abc.com)>"...
hi .. i use the -f "ht<hn@abc.com (hn@abc.com)>" code to set .. who is the sender fo this message ...

and my questions is .. i couldnt escape the ( ' ) in the code ..

$1 =...
2,531
Posted By rdhanek
mailing problem in unix
I have a mailing problem in UNIX....

MAILT="$1"
MAILTO=`echo $MAILT | tr ';' ','`
CONTENT="/var/www/html/notifier/mailnotify_ccdb.html"
SUBJECT="$2"
CC="man@abc.com"
BCC="ant@abc.com"
(
...
23,783
Posted By rdhanek
select data from oracle table and save the output as csv file
Hi

I need to execute a select statement in a solaris environment with oracle database. The select statement returns number of rows of data.

I need the data to be inserted into a CSV file with...
35,707
Posted By rdhanek
Try this for printing the line with pattern, line...
Try this for printing the line with pattern, line above and the next line.
awk '/update/{where=NR;print}NR==where+1 && where!=0 {print}'
2,613
Posted By rdhanek
I apologize for the confusion. But i want to...
I apologize for the confusion. But i want to delete the words having XYZ as a part of them and not the total lines.

I have also modified the example above now.
Not sure if this is still possible...
2,613
Posted By rdhanek
How can i delete a keyword containing XYZ in unix
Hi all,

I am trying to remove the words which has XYZ as a prt of that.

My input file is something like this :


PHNDAZLF-UPS-XYZ' aaaaaaa bbbbb
ADFRTEJKS-XYZ cccccccc ddddddd rrrrrr...
5,586
Posted By rdhanek
How can i assign an select statement into a variable?
I am trying to assign an select statement into a variable. Can someone hel me with this.

example :
a='select * from dual'

echo $a should give me select * from dual


But this is not...
4,685
Posted By rdhanek
Hi Panyam/thanhdatI am unable to use grep -v -fas...
Hi Panyam/thanhdatI am unable to use grep -v -fas it is giving me the error below.grep: illegal option -- fUsage: grep -hblcnsviw pattern file . . .And the awk that has been specified is giving a...
4,685
Posted By rdhanek
How can i delete the contents of one file based on another file
Hi all,

I have two log files A and B. Where files A have 10 lines and file b has 5 lines.

Out of them 3 lines are common to both of them. I want to compare both the files and want to delete...
3,477
Posted By rdhanek
That worked Perfect! thanks
That worked Perfect!

thanks
3,477
Posted By rdhanek
Yes..You are correct! output expected is ...
Yes..You are correct!

output expected is


aaaa bbbbb cccc dddd
xxxx yyyy xxxxx abc
aaaa bbbbb cccc dddd
rrrrrrrrr ttttttt yyyy
aaaa bbbbb cccc dddd
3,477
Posted By rdhanek
search for keyword in subsequent lines and delete the second line
I have my data something like this

I need to search for the keyword yyyy in the susequent lines and if it is present, delete the second line with keyword.

In other words, if a keywords is...
5,308
Posted By rdhanek
Hi Panyam, The awk statement is still...
Hi Panyam,

The awk statement is still giving me bailing out error. i am not sure if it is an issue because my box is SunOS.

Apart from this, the grep -w that you have suggested is working...
5,308
Posted By rdhanek
panyam, i am getting a bailing out error with...
panyam, i am getting a bailing out error with that awk command.
5,308
Posted By rdhanek
Hi Panyam, i don't think the issue is with...
Hi Panyam,

i don't think the issue is with grep, as i am getting the data if the else part of the code is executed.
The only issue is with first part of the code which i am using to get the...
5,308
Posted By rdhanek
Hi Panyam, here is the code that i am using...
Hi Panyam,

here is the code that i am using to grep for 5 hrs back data. As a part of it..if it goes to the else loop it is working fine. but the data is picked by grep if the code executes th...
5,308
Posted By rdhanek
I am sorry for the confusion. That line...
I am sorry for the confusion. That line a=08/11/2009 21' should be replaced with a=$express.I will update my post also accordingly.
And i am using the total script to get 5 hrs back data. And the...
5,308
Posted By rdhanek
Giving an error message as it is treating 21 as...
Giving an error message as it is treating 21 as the file name.

---------- Post updated at 11:27 PM ---------- Previous update was at 11:18 PM ----------

It it is working fine in the script also...
5,308
Posted By rdhanek
Issues with grep -w
I am trying to use grep -w something as shown below.

grep -w "$a" $LOG1


It is not giving me neither any error nor any data. I am facing the issue while i run this command inside a script....
5,145
Posted By rdhanek
I am getting the below error. Not sure if it is...
I am getting the below error. Not sure if it is supported under SunOS box. Can you suggest me an alternative?


grep: illegal option -- f
5,145
Posted By rdhanek
Thanks a lot. It worked perfectly. ...
Thanks a lot. It worked perfectly.

---------- Post updated 08-11-09 at 04:18 AM ---------- Previous update was 08-10-09 at 10:13 AM ----------

Hello Franklin52,

Need an update in the code...
Showing results 1 to 25 of 80

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