Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 2008 14:04:52 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Paul Schmehl <pschmehl_lists_nada@tx.rr.com>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: bsd-grep-20080725_1 -v flag busted...
Message-ID:  <79286777-17AD-48C0-B51E-1566C96D9260@mac.com>
In-Reply-To: <24E2FE8AA9A40D2EE14DF4F7@utd65257.utdallas.edu>
References:  <56E45E0F-29D4-4CA8-9936-384405AB874A@mac.com> <4897518D.4090001@FreeBSD.org> <20080804201806.GA50143@nagual.pp.ru> <24E2FE8AA9A40D2EE14DF4F7@utd65257.utdallas.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 4, 2008, at 1:26 PM, Paul Schmehl wrote:
> Are you sure it's grep that's broken?

No, not entirely.  :-)

> pauls@utd65257# echo 'fee\nfi\nfoe\nfum'
> fee\nfi\nfoe\nfum

Your shell's built-in echo doesn't understand the C-style "\n"; try  
using printf command instead of echo.

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?79286777-17AD-48C0-B51E-1566C96D9260>