chilukuri_perl has asked for the wisdom of the Perl Monks concerning the following question:
How can shell interpretation of white spaces can be avoided for above prupose$module = "xyz abc"; $pid = `ps -aef|grep "$module"|grep -v grep |cut -d ' ' -f3`; grep: can't open xyz grep: can't open abc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: spaces in grep command argument executed in backticks
by jwkrahn (Abbot) on Oct 22, 2009 at 06:23 UTC | |
|
Re: spaces in grep command argument executed in backticks
by cdarke (Prior) on Oct 22, 2009 at 08:03 UTC | |
by jwkrahn (Abbot) on Oct 23, 2009 at 21:01 UTC | |
|
Re: spaces in grep command argument executed in backticks
by jakobi (Pilgrim) on Oct 22, 2009 at 07:33 UTC | |
by jwkrahn (Abbot) on Oct 22, 2009 at 07:57 UTC | |
|
Re: spaces in grep command argument executed in backticks
by Anonymous Monk on Oct 22, 2009 at 06:12 UTC | |
by Anonymous Monk on Oct 22, 2009 at 06:17 UTC |