On Thu, Aug 04, 2005 at 04:18:21PM +1000, Ian Wienand wrote:
> e.g.
>
> #!/bin/bash
>
> output=">> /tmp/output"
>
> eval ls $output
Just don't put the >> in the var.
If you want it to go the screen, you can use /dev/tty.
Or for those unixes that support it, like linux, /dev/fd/1
is stdout.
So:
R=/dev/tty (or R=/dev/fd/1)
or
R=/tmp/output
then
somecommand >> $R
--
Matt
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html