[TriLUG] bash question

David Brain dbrain at gmail.com
Wed Oct 17 17:04:41 EDT 2007


Smells nasty, but...

CMDA="ls |"
CMDB="wc -l"
bash -c "$CMDA$CMDB"

seems to work.

On 10/17/07, Magnus <magnus at trilug.org> wrote:
> Joseph Mack NA3T wrote:
> > I'm still interested in finding out how to concatenate
> > strings to make commands programmatically.
>
>
> BIGSTRING=${LITTLESTRING1}${LITTLESTRING2}
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ  : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>



More information about the TriLUG mailing list