On Thu, Dec 12, 2002 at 07:14:28PM +1100, BSD Freak wrote:
> Hi guys,
> 
> Just tried the following and it doesn't seem to work.. any explanations?
> 
> %echo first line \\n second line
> 
> Output is: 
> first line \n second line

According to the man-page, echo(1) is working as advertised. What you
want is printf(1).

    $ printf "first line\nsecond line\n"
    first line
    second line

-- 
Jonathan Chen <[EMAIL PROTECTED]>
----------------------------------------------------------------------
                                  Computers are like air conditioners.
                              They stop working when you open Windows.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to