Search Results

Search: Posts Made By: TCS
947
Posted By TCS
Grep 'time' in save records
Hi Team,

Is there a way to grep time taken to save records.

Its like there is one webpage where when I click save button taking so much time to save result.
Therefore, I want to grep that...
3,075
Posted By TCS
Madeingermany, can you please throw some light on...
Madeingermany, can you please throw some light on command you gave me.
Each command you send me giving me same result.
3,075
Posted By TCS
So this means the above posted code will pick...
So this means the above posted code will pick each sessionID after 'session out' and find for duplicates.
3,075
Posted By TCS
Sorry about the confusion. Actual scenario...
Sorry about the confusion.

Actual scenario is like whenever 'session out' is grepped, system should find next immediate sessionID and compare it with next sessionIDs generated or destroyed.
...
3,075
Posted By TCS
Can we do like whenever 'session out' keyword is...
Can we do like whenever 'session out' keyword is encountered then only this command show its magic. As there are millions of sessionID (or duplicate) but we are considering only those which are...
3,075
Posted By TCS
Genuinely awesome, great help! I just don't...
Genuinely awesome, great help!

I just don't want it to be mugged up. Can you please give me some head'sup on how this command is working. Actually I am not familiar with so many terminologies like...
3,075
Posted By TCS
Thanks for the update. The command you have...
Thanks for the update.

The command you have shared is not working with code I have posted above.
I am getting this output: duplicate - in lines 12 and 13
duplicate - in lines 12 and 13
. . . ....
3,075
Posted By TCS
This is part of data from my file.log where I am...
This is part of data from my file.log where I am using this command to get all the session ids like MwfQakeHv0MZ3wfwX2V-vgln and comparing it in whole file.

hence, when i run this command I am...
3,075
Posted By TCS
Oh sweet! that removed errors. Thanks Is...
Oh sweet! that removed errors. Thanks

Is there a way we can also print its associated timestamp.

---------- Post updated at 04:35 PM ---------- Previous update was at 04:31 PM ----------

Is...
3,075
Posted By TCS
awk '{for(i=2;i<=NF;i++) if...
awk '{for(i=2;i<=NF;i++) if ($(i-1)=="sessionid:") if ($i in s) {print "duplicate",$i,"in lines",s[$i],"and",NF} else {s[$i]=
NF; break}}' server.log


-bash-3.2$ ./testscript.sh
awk: syntax...
3,075
Posted By TCS
line1 -> ppp dfasf adgasg session out...
line1 -> ppp dfasf adgasg session out sfsgsgsghsgh
line2 -> sdaf agasg sessionid: 1234Nhsh34 sdagsjhsh srhs
line3 -> sdgshytnba sessionid: 453omgt thdjdh gfhjdj
line4 -> sdshdh fhadhj kdrtryf...
3,075
Posted By TCS
Find sessionids after match
Hi Guys,

I need a help on writing shell scripting where I am stuck on finding keyword after a grep match.

file.log (sample)
line1 -> ppp dfasf adgasg session out sfsgsgsghsgh
line2 -> sdaf...
Showing results 1 to 12 of 12

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