Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Trying to use perl -e in a csh alias, but can't find the right combination of "/'/and backslashes to make this work... The command strips out any lines containing '$mail_cmd'...
This is a simple example which can be achieved using grep or sed, but does anyone know how to solve the general problem & define this alias?alias rfw "cat \!^ | sybperl -e 'while (<>) { print if !/$mail_cmd/; } +' | sybperl"
No wonder the perl gurus created q() & qq() - very smart :)
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: csh, alias, perl & quotes
by sh1tn (Priest) on Jun 17, 2005 at 10:19 UTC | |
by merlyn (Sage) on Jun 17, 2005 at 10:40 UTC | |
| |
by Anonymous Monk on Jun 17, 2005 at 10:27 UTC | |
by Anonymous Monk on Jun 20, 2005 at 08:11 UTC | |
by sh1tn (Priest) on Jun 17, 2005 at 11:02 UTC |