[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash related question, adding variable into path



2012/6/23 Keith McKenzie <km3952@gmail.com>:
> I think maybe put ; after the first command before issuing the second
> command mkdir
>
> id=`/opt/zimbra/bin/mysql -e 'use zimbra;select id,comment from
> mailbox;' | grep $username | cut -f 1` ; mkdir /tmp/$username
> 2>/dev/null
>
> &/or, possibly you need to escape your statement
>
> id=`/opt/zimbra/bin/mysql -e \'use zimbra;select id,comment from
> mailbox;\' | grep $username | cut -f 1` ; mkdir /tmp/$username
> 2>/dev/null

thanks
but on my code it is actually on a newline

-- 
Regards,

Umarzuki Mochlis
http://debmal.my


Reply to: