Hi, I am attempting to write a regex but it is giving me a headache.
I have two log entries
1. Feb 3 12:54:28 cdrtva01a1005 [12: 54:27,532] ERROR
[org.apache.commons.logging.impl.Log4JLogger]
2. Feb 3 12:54:28 cdrtva01a1005 [12: 54:27,532] ERROR [STDERR]
I am using the following
"^\w+\s+\d{1,2
Thank you very much
On 5/4/2010 6:12 PM, Shawn H Corey wrote:
Jim Gibson wrote:
You need to reset LOGFILE to the beginning for subsequent iterations
over
the @conditions array. As written, the nested foreach will never be
executed
except for the first condition. Add the indicated seek call.
Hi,
I'm stuck on using an array to determine the out come of a foreach loop.
The script is below.
#!/usr/bin/perl
#
@conditions = ("NET", "eth");
$hostname = (`/bin/hostname`);
$logfil
It is a system logfile. That is the way syslog is dumping it into the log.
-Original Message-
From: Chas Owens [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 02, 2001 12:59 AM
To: Paul Fontenot
Cc: [EMAIL PROTECTED]
Subject: Re: spaces...
If your data is not supposed to have spaces in
I have a file that for 1/2 the month has one space between every word, I use
this to split. However the other half the month it has two spaces in one
place and all the rest have one space.
Using s/ /#/g to change all spaces to # so I can use that for the split
doesn't work. How can I get the back
Just one more testiment to the level of knowledge that maybe found in these
support channels. Thanks to Peter the script is perfect. Thanks again.
-Paul
On Friday 13 April 2001 17:47, you wrote:
> At 05:04 PM 4/13/01 -0700, Paul Fontenot wrote:
> >Here is the actual code and out
$fields[5], $disk_space
.
And this is what the output looks like:
421676 . <--- This should be under the disk usage column
Disk Usage Stats
===
NameUser Name Home directory
Hello,
How can I get a summary of the file sizes in a directory with perl? Like a
"du -s ." ?
-Paul
--
4:00pm up 6:54, 3 users, load average: 1.66, 1.55, 1.47