bug-bash
[Top][All Lists]
Advanced

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

Re: Output redirection?


From: Chet Ramey
Subject: Re: Output redirection?
Date: Sat, 28 Jan 2006 21:35:38 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051201)

Yuri Karlsbrun wrote:
> Hello,
> 
> I, probably, need bash-help mailing list, but I could not find it.
> 
> Here is the bash script fragment:
> LOG_FILE="./logfile"
> ...
>> $LOG_FILE
> 
> I supposed that the statement above redirects stdout to the logfile.
> But the following 'echo' statement prints on the screen. The logfile is
> opened. What is the real purpose of the statement above?

To create $LOG_FILE if it doesn't exist.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]