perl@1983 has asked for the wisdom of the Perl Monks concerning the following question:
Note: $cmd is a string that contains '------' pattern. Thanks in advance.`echo $cmd | grep '\-\-\-\-'`
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sh: -c: line 1: syntax error near unexpected token `|'
by stevieb (Canon) on May 10, 2012 at 07:49 UTC | |
by perl@1983 (Sexton) on May 10, 2012 at 08:22 UTC | |
by lune (Pilgrim) on May 10, 2012 at 09:23 UTC | |
by cdarke (Prior) on May 10, 2012 at 09:23 UTC | |
by Anonymous Monk on May 10, 2012 at 13:54 UTC | |
|
Re: sh: -c: line 1: syntax error near unexpected token `|'
by Anonymous Monk on May 10, 2012 at 20:06 UTC |