Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)
"Com MN PG P E B Consultant 3" <mn-pg-p-e-b-consultant-3.com@siemens.com> wrote:
> echo THIS DOES NOT WORK
> foo=$(cat exp_test <<BAD | tr -d V= | grep '[0-9]*')
> V=1234
> abcd
> BAD
0. Since you passed a file name to cat, it will ignore stdin.
1. Since the here-document belongs to the command in $(), the
here-document must also be entirely inside $(). Move the closing )
after "BAD".
2. [0-9]* matches every line, since * matches 0 or more occurrences.
paul