On Aug 19, 2008, at 12:12 PM, nikhil mehra wrote:
Hi,
Can we use egrep in perl program which would just open a file and
search a
literal string using egrep.
Cna some one help me with syntax.
Thanks,
--
Nikhil Mehra
"The only Constant in Life is CHANGE!"
"Whether
Hi,
Can we use egrep in perl program which would just open a file and search a
literal string using egrep.
Cna some one help me with syntax.
Thanks,
--
Nikhil Mehra
"The only Constant in Life is CHANGE!"
"Whether it is mainframe, client-server, distributed, grid or web ser
Folks,
I have been converting several shell scripts to perl, one of my recent tasks
has
been to convert several egreps into an efficient perl subroutine.
each egrep (5 total) is kicked off to parse a single log dir of ~350 log
files
that grow in size as a process runs. The total size of a log
@lines=get->(parameters,file) ?
Thank you
Pierre
>From: Michael Fowler <[EMAIL PROTECTED]>
>To: P lerenard <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: egrep and $ftp->cmd
>Date: Fri, 19 Oct 2001 14:29:50 -0800
>
>On Fri, Oct 19, 2001 at 08:51:45P
;egrp -n 'zone \"try.com' file");
> $ftp->quit;
> print @zone;
>
> I don't know if ->cmd support this command, it doesn't work with me.
> is there another way to do that, I don't want to get the file.
First, where are you getting this cmd()
Hi,
I try to get one line from a file on another server.
I tried with Net::FTP
$ftp = Net::FTP->new("server");
$ftp->login($user,$pass);
$ftp->cwd("dir");
@zone = $ftp->cmd("egrp -n 'zone \"try.com' file");
$ftp->quit;
print @zone;
I don't know if ->cmd support this command, it doesn't work with