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 it is mainframe, client-server, distributed, grid or web
services
computing — none of it works without the network."
#!/usr/bin/env perl
open(F, "egrep Please /etc/motd |");
while (defined($line = <F>)) {
print $line;
}
Perry
Ease Software, Inc. ( http://www.easesoftware.com )
Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/