On Thu, 2008-09-18 at 10:21 -0400, Aali Naser wrote:
> I still have no luck after trying your suggestions. I could use some
> more
> ideas if you guys dont mind. Please send them my way, I ll appreciate
> it.
>
#!/usr/bin/perl
use strict;
use warnings;
my $sep = "\t";
my @tags = (
'Server Nam
Gentlemen,
I still have no luck after trying your suggestions. I could use some more
ideas if you guys dont mind. Please send them my way, I ll appreciate it.
A
On Thu, Sep 18, 2008 at 3:03 AM, Dr.Ruud
<[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> wrote:
> "John W. Krahn" schreef:
>
> > #!/usr/bin/pe
"John W. Krahn" schreef:
> #!/usr/bin/perl
> use warnings;
> use strict;
>
> open SERVERS, '<', 'sample.txt' or die "Cannot open 'sample.txt' $!";
>
> # set the Input Record Separator
> $/ = "--\n";
>
> while ( ) {
> my $server_name = /^Server Name:\s+(.+)/m;
> m
Chris,
This information needs to be parsed and put it in a readable format for some
decision making. It has to be parsed either via a script or manually. I
thought script would be a better and faster way. And that is all I can say.
A
On Wed, Sep 17, 2008 at 5:04 PM, Chris Charley <[EMAIL PROTECT
Aali Naser wrote:
Hello All,
Hello,
I have a file with the info in the following format;
Start of File=
Server Name: ABCDEF
Manufacturer: Dell
Model: Some Model
Number Of Processors (Includes MultiThread): 2
Maximum Clock Speed: 3 - GHZ
Serial Number: 1234
On Wed, 2008-09-17 at 16:08 -0400, Aali Naser wrote:
> The code is listed below. I have not figured out how to capture
> multipe disk drive entries.
> Thanks
>
> ===
> #!perl
# Use strict as well as warnings
use strict;
> use warnings;
>
> my $server;
> my $fcode;
> my $i;
> m
- Original Message -
From: ""Aali Naser""
Hello All,
I have a file with the info in the following format;
Start of File=
Server Name: ABCDEF
Manufacturer: Dell
Model: Some Model
Number Of Processors (Includes MultiThread): 2
Maximum Clock Speed: 3
The code is listed below. I have not figured out how to capture multipe disk
drive entries.
Thanks
===
#!perl
use warnings;
my $server;
my $fcode;
my $i;
my $r;
my $k;
my $j;
my $ii;
my $a;
my $b;
my $c;
my $d;
my $e;
my $f;
my $g;
my $server_name;
my $manufac;
my $model;
my $num_
On Wed, 2008-09-17 at 15:21 -0400, Aali Naser wrote:
> Can any one help me with the logic for this type data processing?
Yes. What code do you have so far?
--
Just my 0.0002 million dollars worth,
Shawn
"Where there's duct tape, there's hope."
Cross Time Cafe
"Perl is the duct
Hello All,
I have a file with the info in the following format;
Start of File=
Server Name: ABCDEF
Manufacturer: Dell
Model: Some Model
Number Of Processors (Includes MultiThread): 2
Maximum Clock Speed: 3 - GHZ
Serial Number: 123456
Proc Usage: (1 Proc Sample
This can be made with a regular expression:
#!/usr/bin/perl
#vim: set shiftwidth=2 autoindent showmatch syntax=perl
use strict;
use warnings;
# all lines following __DATA__ go into $s
my $s;
{ local $/ = undef; $s = ; }
my %vars;
# match 1 or more alphabetics chars followed by an '=' followed
Jerry Rocteur wrote:
>
> On Wed, Aug 02, 2006 at 12:15:23PM +0100, Rob Dixon wrote:
>
>>Jerry Rocteur wrote:
>>
>>Hi Jerry
>>
>>I started writing this in a single pass, but its a lot easier if you take
>>two passes - effectively converting from multi-line parameters to single-line
>>ones. I assume
> -Original Message-
> From: Jerry Rocteur [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 02, 2006 4:59 AM
> To: beginners@perl.org
> Subject: Multiple line parameters in parameter file
>
> Hi,
>
> I've just searched the web and tried the archives
Hi,
I've just searched the web and tried the archives but that is down at the
moment.
I'm reading a parameter file:
PARAM=value
PARAM1=value2
Etc. and this works great, but all of a sudden...I need multiple lines..
For example:
login=logname
password=password
ftpfiles="/var/opt/file1, /var/o
Jerry Rocteur wrote:
>
> I've just searched the web and tried the archives but I'm not in luck
>
> I'm reading a parameter file:
>
> PARAM=value
> PARAM1=value2
>
> Etc. and this works great, but all of a sudden...I need multiple lines..
>
> For example:
>
> login=logname
> password=password
> ftp
Hi,
I've just searched the web and tried the archives but I'm not in luck
I'm reading a parameter file:
PARAM=value
PARAM1=value2
Etc. and this works great, but all of a sudden...I need multiple lines..
For example:
login=logname
password=password
ftpfiles="/var/opt/file1, /var/opt/file2, /va
Hi all
I,am newbie perl ,i have text file like this
INPUT FILE
17 matches
Mail list logo