Search Results

Search: Posts Made By: senormarquez
3,121
Posted By senormarquez
here are some examples zgrep 11263511...
here are some examples
zgrep 11263511 *.trace.log*
grep 1215456 *.log


We are not sure which grep command is what crashes the server. Our performance team can only see that its a grep command...
3,121
Posted By senormarquez
the characters vary. sometimes we need to find a...
the characters vary. sometimes we need to find a particular transaction id, look for errors, or a particular word.

> uname -a
Linux xx.xx.xx.com 2.6.18-371.6.1.el5 #1 SMP Tue Feb 18 11:42:11...
3,121
Posted By senormarquez
Search string or words in logs without using Grep
I'm in need of some kind of script that will search for a string in each logfile in a directory but we don't want to use GREP. GREP seems to use up to much of our memory causing the server to use up...
4,044
Posted By senormarquez
i like the code. It gave me an error when i ran...
i like the code. It gave me an error when i ran though.

./test_sleeper.ksh: line 46: [: missing `]'
4,044
Posted By senormarquez
Cron is not installed on this server.
Cron is not installed on this server.
4,044
Posted By senormarquez
Modify Sleeper script to run every 30 minutes
I would like to modify the below sleeper script to run every 30 minutes at the 29th and 59th minute of the hour.

The below script is designed to run every 10 minutes and send an argument to the...
986
Posted By senormarquez
Thanks for all your feedback. Here is the...
Thanks for all your feedback. Here is the outcomes of all your sugestions
didnt work
awk -F'[_ ]' '{print $(NF-2), $2, $(NF)}' myFile
output:dvcsfx: 5
dvcsfx: 8

This worksawk...
986
Posted By senormarquez
Extract certain sections of a line
I have a log that looks like below
sc.mng_10_Err.20131020_000000.log:NCSSC_MNG_UP_PE_TO_BE : Failed to change dvc_trx_sts from PE to BE for srvtrx: 213323141427349 dvcsfx: 1...
2,698
Posted By senormarquez
here are the commands i used to accomplish this. ...
here are the commands i used to accomplish this. not sure if i could have done it with one

Extract the 4th line above SendProv has thrown exception
awk '{lines[NR] = $0} /SendProv has thrown...
2,698
Posted By senormarquez
Print 4th line back from regexp
I'm looking for a way to print the 4th line back from a regular expression. Kind of like the below but it has to be the 4th line before the regexp.


Print the line immediately before regexp,...
2,713
Posted By senormarquez
yeah, it is HPUX. i couldn't get ehe awk...
yeah, it is HPUX.

i couldn't get ehe awk codes to work so i went with the grep.
the last tme i tried i kept getting the error

awk: Internal software error in the tostring function on .
...
2,713
Posted By senormarquez
This one gave me a different error awk:...
This one gave me a different error

awk: Internal software error in the tostring function on .
The input line number is 5.88657e+06. The file is ip_02072011.dat.
The source line number is 1.
...
2,713
Posted By senormarquez
This one worked and boy is it faster than the...
This one worked and boy is it faster than the GREP. Thanks Franklin52

yinyuemi, i'm testing yours out now.


CORRECTION:

This logic actually didn't work. i didn't get an error with it...
2,713
Posted By senormarquez
when i tried this i got an error syntax...
when i tried this i got an error

syntax error The source line is 1.
The error context is
>>> NR==FNR{A[$0]=1;next}{if! <<< ((A[$0]))print}
awk: The statement cannot be...
2,713
Posted By senormarquez
I realize now that i should have expounded some...
I realize now that i should have expounded some more.

The ips come in 6 different files and i compile them into one. before i complile them, i "clean" the dump by deleting any trailing white...
2,713
Posted By senormarquez
Filter(Delete) a list of IPs
Hello,
I have a dump of IPs (around 2 million) and i need to filter out(delete) 37 IPs from this list.
Here is a short list of IPs that i would need deleted

111.111.xxx.xxx
123.123.xxx.xxx ...
1,595
Posted By senormarquez
thanks for the help. what worked is the...
thanks for the help.

what worked is the $((DUMP_COUNT+0))

Thanks GURU
1,595
Posted By senormarquez
Thanks Guru for your response One of the things...
Thanks Guru for your response
One of the things I should have mentioned is that this new server doesn't let me use "let" statements. When I did it would show blank. So originally I had a let...
1,595
Posted By senormarquez
Report Totals
Hello,

I have written a script in a previous server and its being migrated to a new server. I'm trying to debug my script since i've had to make minor changes to it to get it to work.

I'm...
12,720
Posted By senormarquez
Fantastic. It worked. Thanks alot for your help.
Fantastic. It worked. Thanks alot for your help.
12,720
Posted By senormarquez
Thanks. removing the spaces didn't work but...
Thanks. removing the spaces didn't work but adding in the $(( )) did help.
My 'IF' statement fail though even though both numbers are 8

NUM1b = 8
NUM1a = 0
NUM1 = 8 and NUM2= ...
12,720
Posted By senormarquez
+: more tokens expected
Hey everyone, i needed some help with this one. We move into a new file system (which should be the same as the previous one, other than the name directory has changed) and the script worked fine in...
Showing results 1 to 22 of 22

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