Randy McMurchy wrote these words on 02/28/06 20:35 CST:
> JUSTFORBRUCE=$(echo ${BIGSTRING} | sed "s/^.*\($MYSTRING\).*$/\\${COUNTER}/")
>
> Notice that now the desired string was returned: "string".
It appears I neglected to put the last necessary command in the
text. Of course (as if it were not obvious), you must echo the
variable one more time to prove the conclusion.
echo $JUSTFORBRUCE
This has been a fun exercise. I knew there was somewhere i was
getting beat up using `...`. I found it. And proved it to myself
again.
Time to go eat dinner....
--
Randy
rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
20:39:00 up 15 days, 4:48, 3 users, load average: 0.13, 0.15, 0.28
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page