in reply to Log File Parsing
#!/usr/bin/perl -w use strict; my @data = (); $/ = '------------------------------------------------------------\n'; open(PIPE,'ulread |') || die "could not fork() : $!\n"; while (my $line = <PIPE>) { ## total block push @data, $line } close(PIPE) || die "close error : $!\n"; for(1..4){ pop @data; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Log File Parsing
by TStanley (Canon) on Sep 11, 2001 at 19:44 UTC |