stdout - Display output of a Bash command and keeping the output in a variable -


i'm not sure if possible want run bash command , storing output in variable , display if launched command normally. here code:

var=`svn checkout $url` 

so want store output in var , still see result (and because svn checkout takes long time, can't echo $var after..)

thanks

if command run terminal, can do:

var=$(svn checkout $url | tee /dev/tty) 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -