[OT] Evaluate strings in bash
matiassurdi at gmail.com
Wed Aug 20 21:22:01 UTC 2008
Matias Surdi escribió:
> Hi, sorry for the offtopic, but maybe somebody can help me here.
> I've the following variable:
> # echo $BINMAKE
> `if [ -x /usr/obj/usr/src/make.i386/make ]; then echo
> /usr/obj/usr/src/make.i386/make; else echo make; fi` -m /usr/src/share/mk
> It's a string wich includes a commmand.
> How can I get the subcommand replaced by its output?
> I'd like to have a second variable like:
> # echo $newvariable
> make -m /usr/src/share/mk
> Thanks a lot.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
I've finally managed to do what I was trying to do, look here:
Thank you all for your help :-)
More information about the freebsd-questions