[clug] Next in my series of "how to do things in /bin/sh that you probably shouldn't".
Robert Thorsby
robert at thorsby.com.au
Wed Aug 19 18:53:07 MDT 2009
On 20/08/09 10:39:53, Andrew Janke wrote:
> Suppose that I want to send all output from a shell
> script to a logfile as well as displaying it (within
> the script).
Try using a pipe.
echo "This is a test" | tee testfile | sed 's/This //'
HTH,
Robert Thorsby
I think there is a world market for maybe five computers.
-- Thomas Watson, chairman of IBM, 1943
More information about the linux
mailing list