|
RE: lug-bg: grep ? cat? tail?
- Subject: RE: lug-bg: grep ? cat? tail?
- From: b_ned@xxxxxxxxxxxxxxx (Borislav Nedialkov)
- Date: Thu, 16 May 2002 17:06:47 +0300
Otnovo Sorry - eto go raboteshto....no iska pamet?
===========================================
#!usr/bin/perl - пÑ?имеÑ?но....!!!!
use warnings;
use strict;
open FILE, "blabla.log" or die $!;
my @newfile;
my $linenumber = 1;
while (<FILE>)
{
push @newfile,$_;
}
while ($linenumber < 10) # kolkoto iskame da otrejem
{
shift @newfile;
}
print @newfile;
===========================================
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|