H
Hartin, Brian
Hi all,
I can't figure out why the following works from the command line but not
from the backquotes:
echo -e "a\nb\naa" | grep a
This should produce:
a
aa
However, when I execute:
puts `echo -e "a\\nb\\naa" | grep a`
I get:
-e "a\nb\naa"
Of course, this is a trivial example, but it represents my real problem
well enough. Writing the text to a temp file and using 'cat' isn't an
option, unfortunately.
Thanks for any help,
Brian Hartin
*************************************************************************=
***=20
This email may contain material confidential to
Pearson. If you were not an intended recipient,=20
please notify the sender and delete all copies.=20
We may monitor email to and from our network.=20
*************************************************************************=
***
I can't figure out why the following works from the command line but not
from the backquotes:
echo -e "a\nb\naa" | grep a
This should produce:
a
aa
However, when I execute:
puts `echo -e "a\\nb\\naa" | grep a`
I get:
-e "a\nb\naa"
Of course, this is a trivial example, but it represents my real problem
well enough. Writing the text to a temp file and using 'cat' isn't an
option, unfortunately.
Thanks for any help,
Brian Hartin
*************************************************************************=
***=20
This email may contain material confidential to
Pearson. If you were not an intended recipient,=20
please notify the sender and delete all copies.=20
We may monitor email to and from our network.=20
*************************************************************************=
***