Search Results

Search: Posts Made By: sdilucca
7,664
Posted By sdilucca
worked like a charm! Thanks so much.
worked like a charm! Thanks so much.
7,664
Posted By sdilucca
Wow! This is some potent stuff. I am going to...
Wow! This is some potent stuff. I am going to try this. First I will read up on "sed". Will let you guys know the results.
7,664
Posted By sdilucca
any way to do this without relying on the time...
any way to do this without relying on the time stamp? I ask because some of the events happen so quickly that they share the same time stamp.
7,664
Posted By sdilucca
files grow to about 1megabyte. How do I escape...
files grow to about 1megabyte. How do I escape this command once I start it? Thanks allot. Will try this.
7,664
Posted By sdilucca
The events in the circular file have a time...
The events in the circular file have a time stamp. A typical circular file with a wrap over looks like this:

03/11/09 15:00:00 blablabla <=== beginning of circular file
03/11/09 15:01:00...
7,664
Posted By sdilucca
monitoring a circular file
I have an event log which is a circular file. I would like to be able to see real-time updates of that event log. Kind of the equivalent of a 'tail -f'. But obviously 'tail -f' won't work if my...
4,467
Posted By sdilucca
The following worked for me. Thanks to all. ...
The following worked for me. Thanks to all.

x=

x=$1"_"$2

nawk -v d="${x}" '{ if($1"_"$2 >= d) {print $1 " " $2 " " $3 " " $4 " " $5}}' /path/filename.log | grep -c FF
4,467
Posted By sdilucca
i have a feeling that I can use the AWK for this,...
i have a feeling that I can use the AWK for this, but I am not familiar enough.
4,467
Posted By sdilucca
sco unix
sco unix
4,467
Posted By sdilucca
is there any way to do this with only shell...
is there any way to do this with only shell scripting?
4,467
Posted By sdilucca
grep based on date
Hello! I have a circular log file which contains data that looks like this:
01/23/09 08:24:19:04 treadle_data = L3^M
01/23/09 08:24:19:09 STRIP 3 LOW
01/23/09 08:24:19:09 treadle_data = L4^M...
10,360
Posted By sdilucca
thanks guys. the following worked for me: ...
thanks guys. the following worked for me:

egrep -c FT `ls -rt *.log | tail -n 1`
10,360
Posted By sdilucca
tail | grep
The program that is running on my machine generates log files. I want to be able to know the number of lines that contain "FT" in the most recent log file. I wrote the following, but it always...
2,880
Posted By sdilucca
my shell is "sh".
my shell is "sh".
2,880
Posted By sdilucca
I guess I can turn that into a function in the...
I guess I can turn that into a function in the following way..

Last50()
{
tail -n 50 < /var/traffic_log.log}

But I believe this function will only be available during the session. Right? ...
2,880
Posted By sdilucca
I want to create a function that outputs the last...
I want to create a function that outputs the last 50 lines of a process's log. So say my function is called "Last50" and I want to see the last 50 lines for a process called "Traffic". I guess the...
2,880
Posted By sdilucca
Storing a Function
Hi,

I am running Sco Unix v3.2B. I want to know how can I store a function I create so I can use it later simply by just calling it from the command prompt. Sorry if I am asking such a noob...
Showing results 1 to 17 of 17

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