Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am running this code in the command line. I am getting the output, But it also display a message like this :
Please go through my code and provide a solution.Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. cure1: "|/usr/local/sbin/vandos.pl /var/vandos/cure1.msg cure1@ww +w.usamarinestore.com", \cure1 sur: forward@ths.com
Thanks#!/usr/bin/perl $arg1 = $ARGV[0]; @filelist = ` find /home/sites/$arg1/users -type d `; chomp @filelist; @store = (); foreach $fle(@filelist) { ($junk, $reqd )=split (/\/users\//,$fle); ($reqd, $junk) = split (/\//,$reqd); push (@store,$reqd); } foreach(@store) { print `cat /etc/mail/aliases | grep $_`; }
20030214 Edit by Corion: Added formatting, changed title
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
On Useless Cats
by merlyn (Sage) on Feb 14, 2003 at 13:30 UTC | |
by Tomte (Priest) on Feb 14, 2003 at 14:01 UTC | |
|
Re: Error in converted shell script (was: Pls Help)
by mugwumpjism (Hermit) on Feb 14, 2003 at 13:09 UTC | |
|
Re: Error in converted shell script (was: Pls Help)
by Tomte (Priest) on Feb 14, 2003 at 13:04 UTC | |
|
Re: Error in converted shell script (was: Pls Help)
by castaway (Parson) on Feb 14, 2003 at 12:51 UTC | |
by valdez (Monsignor) on Feb 14, 2003 at 13:38 UTC | |
by Anonymous Monk on Feb 14, 2003 at 13:55 UTC | |
|
Re: Error in converted shell script (was: Pls Help)
by jacques (Priest) on Feb 14, 2003 at 14:12 UTC |