Command substitution failure - why?
Vidiot
brown at mrvideo.vidiot.com
Sun Nov 14 21:56:33 UTC 2004
I'm using zsh/
When I enter the following on the command line, I get the expected result:
echo ann001.jpg | awk "{ print substr(\$0, 1, length(\$0) -7 ) }"
Expect result = ann
But, when I do this:
OUT=`echo ann001.jpg | awk "{ print substr(\$0, 1, length(\$0) -7 ) }"`
I get back nothing. The variable is empty.
Anyone have an idea as to why the aboce isn't working?
Thanks in advnace.
MB
--
e-mail: vidiot at vidiot.com /~\ The ASCII
\ / Ribbon Campaign
[So it's true, scythe matters. Willow 5/12/03] X Against
Visit - URL: http://vidiot.com/ / \ HTML Email
More information about the redhat-list
mailing list