Search Results

Search: Posts Made By: openspark
2,468
Posted By openspark
Display OS Release and Patch
Hi,

I have the following info when I do the uname -a

Linux
2.6.18-53.1.14.el5
x86_64 GNU/Linux

Similiarly Please let me know the command to display the OS Release.


Thanks
Sam
3,598
Posted By openspark
Removing lines having #
I have a script which goes to different directories and gives the values of all the input parameters, Something as follows

cd /opt
grep script-filter = yes *.conf
grep...
1,249
Posted By openspark
Hi, I need a command to search and replace...
Hi,

I need a command to search and replace the string, dlp040 to mld200 in multiple html files. I used the following command but it doesnt work

sed s/"dlp040 "/"mld200 "/g *


basically in...
1,249
Posted By openspark
Search and replace error
Hi,

I need a command to search and replace the string, dlp040 to mld200 in multiple html files. I used the following command but it doesnt work

sed s/"dlp040 "/"mld200 "/g *

Please help,
...
1,979
Posted By openspark
syntax error in audit script
Hi,

When I run the following script

#!/bin/sh
email="rc@dll.com"
subject="response times are more than a SECOND"
rt=`tail audit.log | grep -i operationResponseTime | awk '{print $2}'`
if [...
5,152
Posted By openspark
FTP inv tee Query
Hi,

This is part of a ftp script, Can someone please explain what is its functionality or the basic idea behind it and please throw some light on the inv & tee function marked in red.

echo...
2,142
Posted By openspark
Thanks for the reply, I tried using the...
Thanks for the reply,

I tried using the method you suggested, but it didnt work on expected lines.
2,142
Posted By openspark
Getting all the .gz files between Two Date/TimeStamps
Hi,

I am trying to write a script to ftp and get all the files between two date/time stamps from a archive directory. I have sent an attatchment of my archive directory. With the script I intend...
3,104
Posted By openspark
Thanks for the response Jim, I did that. Any...
Thanks for the response Jim, I did that. Any other pointers since I dont have a test sytem and Have to directly implement it on Prod.

Please help,

Thank you
3,104
Posted By openspark
FTP script to gather logs.
Hi,

I am currently working on a FTP script which would ftp to extranet servers from intranet server and gather logs based on timestamps in archive logs and by using a wildcard character in the...
5,593
Posted By openspark
Perl Search pattern error
Hi,



I am trying to grep for two patterns from a set of 820 apache webserver logs,
When I Try to search the pattern with a date stamp and use a wildcard character * for ex: /28/Aug/2008:21*/...
2,968
Posted By openspark
Thank you !
Thank you !
2,968
Posted By openspark
Modifying command for Tar.gz Files.
:)

Hi,

I use the following command to search for a string in all the files in the directories and sub directories.

find . -type f -print | xargs grep bermun@cial.net

Can someone please...
9,085
Posted By openspark
Thanks for the replies ! Unfortunately none...
Thanks for the replies !

Unfortunately none of them seem to work

1.ls | grep \\.gz\$ | xargs zgrep 20/Aug/2008:13:50:23

Takes for ever.

2.zgrep 20/Aug/2008:13:50:23 *
-bash:...
9,085
Posted By openspark
Searching *.gz logs
I have been trying to search for a string from close to 200 *.gz file, But i get a error. Can someone suggest a bulletproof solution Please.

zgrep 20/Aug/2008:13:50:23 request.log.*.gz
-bash:...
2,176
Posted By openspark
Thanks a lot, vidyadhar cut -d "/" -f5...
Thanks a lot, vidyadhar

cut -d "/" -f5 request.log | sort | uniq -c

The above command worked.



Thanks
2,176
Posted By openspark
How to cut the boldened url
Following is a Webserver log

138.132.31.125 - mas@zir.com [12/Aug/2008:13:58:30 -0400] "GET HTTPS://post.zir.com/wps/PA_1_0_J4/zrec_portal/static/images/hdr_makepayment_gry.gif HTTP/1.1" 200 2421...
2,772
Posted By openspark
Hi, Thanks for your replies, actually I tried...
Hi,
Thanks for your replies, actually I tried both the methods but it doesnt seem to pick up the log entries between the start and end times, The above code



Gives a syntax error

I tried...
2,772
Posted By openspark
How can I get entries between two points
Hi,

I am trying to write a script to get entries between two points lets say start and end points from a log file,

the log file time format is as follows

Start - 07/Aug/2008:18:26:43
End ...
2,790
Posted By openspark
Sed Range command
Hi,
I am trying to get all the log entries in a log file based on start and end times,

I have tried to use the following but couldnt get the desired output:

sed -n '/start/,/end/ p' file
...
1,935
Posted By openspark
--------------------------------------------------...
---------------------------------------------------------------------

I figured out the first two parts and this is the part I wasnt able to figure out and I apologize but would like to say this...
1,935
Posted By openspark
Timestamp Search
Hi,

I am trying to write a script which would go search and get the info from the logs based on START and END timestamps. The log file format is as follows

255.45.250.227 - Unauth...
Showing results 1 to 22 of 22

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