Rookie Perl Question
- From: "swangdb" <swangdb@xxxxxxxxxx>
- Date: 30 Jun 2006 11:21:38 -0700
I want to run some unix commands from a perl script.
This works, it prints out all lines that don't begin with a # in the
file $ALIASES:
***
$temp = "egrep -v \^# $ALIASES";
system($temp);
***
This doesn't work, it tries to take the egrep output and cut out part
of it:
***
$temp = "egrep -v \^# $ALIASES | cut -d: -f1";
system($temp);
***
I get the following output:
Usage: egrep [OPTION]... PATTERN [FILE]...
Try `egrep --help' for more information.
How can I make this work?
Thanks!
.
- Follow-Ups:
- Re: Rookie Perl Question
- From: Tad McClellan
- Re: Rookie Perl Question
- From: Eric R. Meyers
- Re: Rookie Perl Question
- Prev by Date: Re: search and replace on an array
- Next by Date: Re: Professional IDE for a cross-platform Perl application
- Previous by thread: search and replace on an array
- Next by thread: Re: Rookie Perl Question
- Index(es):
Relevant Pages
|
|