Search Results

Search: Posts Made By: Khushbu
2,878
Posted By Khushbu
Awesome Work Ravinder!! :-D My colleague...
Awesome Work Ravinder!! :-D

My colleague and me are really thankful to your constant efforts. And we really appreciate this. Finally we have completed with our scripting. :) :)

Thanks...
2,878
Posted By Khushbu
Hi Ravinder, Thanks for the code. Its...
Hi Ravinder,

Thanks for the code. Its working absolutely as we needed. But we want the 'TOTAL' variable to be declared globally. But as we are trying to print the TOTAL variable outside the awk...
2,878
Posted By Khushbu
Hi Ravinder, Thanks a ton for your...
Hi Ravinder,

Thanks a ton for your previous answer to my post regarding grep time form string. Its working amazingly!

Now, i have stored this time in lastrestart.txt file as follows:
...
2,878
Posted By Khushbu
Hi RudiC, The time will be runtime value. I...
Hi RudiC,

The time will be runtime value. I cannot pass this static value through this as illustrated in your example.
I need the 5th field (07:55) to be cut which is separated by multiple...
2,878
Posted By Khushbu
Cut only time from string
Hi Guys,

I have following different lines separated by multiple spaces. And i need to cut only the time part (16:53) from the string. How can we achieve it?

remedy 29210 1 1 07:55 ? ...
2,866
Posted By Khushbu
Hi ravinder, This worked exactly as I...
Hi ravinder,

This worked exactly as I needed! :-)
2,866
Posted By Khushbu
Hi Ravinder, It Worked!! :b::) Thank...
Hi Ravinder,

It Worked!! :b::)

Thank You so much!

Actually, the data that we will get would be run time data. And the first two columns namely var1 and var2 are highly unprdedicatble...
2,866
Posted By Khushbu
Cut each column value and store in variable
Hi Pals,

I have a file which contains a set of similar lines, as follows:

Remedy Support Action Triggered by Incident Modification of type: ARA username2 ...
2,586
Posted By Khushbu
Hi Cero, Thanks for debugging. Worked on...
Hi Cero,

Thanks for debugging. Worked on tablename issue.

Now how do i add semicolon to output.sql since it is being written using the awk command as follows:

awk '{print "select * from...
2,586
Posted By Khushbu
Well, I'm now trying the following script where...
Well, I'm now trying the following script where I'm trying to run a .sql file from this script. But when i open the output file everything is blank. Why is this so?

Script:
PATH=.................
2,586
Posted By Khushbu
Thanks for the quick reply Ravinder. When i...
Thanks for the quick reply Ravinder.

When i execute the following in my script (named demon_script.sh):

awk '{print "select * from apsdi-apaction where request_id= " $0}' demo.txt

i get...
2,586
Posted By Khushbu
Storing passing and executing select statement in loop
Hi,

i want to do the following:

Grep the following kind of strings for the 15digit ID which is stored in filename1:

"14:06:51.396 [Aug-21-2015] INFO BMCREMEDYSD INPUT-ACTION Failed to...
1,587
Posted By Khushbu
It worked!! thanks a ton!!
It worked!! thanks a ton!!
1,587
Posted By Khushbu
Grep a String
Hi Guys,

Is it possible to grep only the Request ID 000000000038775 from the string:

19:37:22.429 [Aug-20-2015] INFO BMCREMEDYSD INPUT-ACTION Failed to retrieve Remedy Incident Modification...
2,085
Posted By Khushbu
Hi, when i run this code i get the following...
Hi,
when i run this code i get the following error:

kh.awk: line 1: FNR: command not found
kh.awk: line 2: syntax error near unexpected token `{'
kh.awk: line 2: ` if (!($2 in gA)) {'

Can...
2,085
Posted By Khushbu
Hi vgersh99, Thanks a ton for the solution!...
Hi vgersh99,

Thanks a ton for the solution!
But I would like to know the naming conventions you have used her such as gA, gAl, aAa, gC, aA since i would like to make some format changes in the...
2,085
Posted By Khushbu
Evaluate 2 columns, add sum IF two columns satisfy the condition
HI All,

I'm embedding SQL query in Script which gives following output:

Assignee Group Total
ABC Group1 17
PQR Group2 5
PQR Group3 6
XYZ Group1 10
XYZ Group3 5

I have saved the...
Showing results 1 to 17 of 17

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