From owner-freebsd-questions@freebsd.org Sat Sep 9 19:29:29 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8FDEEE04538 for ; Sat, 9 Sep 2017 19:29:29 +0000 (UTC) (envelope-from mfv@bway.net) Received: from smtp2.bway.net (smtp2.bway.net [216.220.96.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D2FC75020 for ; Sat, 9 Sep 2017 19:29:28 +0000 (UTC) (envelope-from mfv@bway.net) Received: from gecko4 (host-216-220-115-161.dsl.bway.net [216.220.115.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: m1316v@bway.net) by smtp2.bway.net (Postfix) with ESMTPSA id 9B527958B3; Sat, 9 Sep 2017 15:29:15 -0400 (EDT) Date: Sat, 9 Sep 2017 15:29:15 -0400 From: mfv To: Steve O'Hara-Smith Cc: freebsd-questions@freebsd.org Subject: Re: Why does wc increase character count by 1 ? Message-ID: <20170909152915.310621cb@gecko4> In-Reply-To: <20170909200506.73e0e8e4987a388acb33c7dc@sohara.org> References: <20170909142210.23ed38e2@gecko4> <20170909200506.73e0e8e4987a388acb33c7dc@sohara.org> Reply-To: mfv@bway.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Sep 2017 19:29:29 -0000 > On Sat, 2017-09-09 at 20:05 Steve O'Hara-Smith > wrote: > >On Sat, 9 Sep 2017 14:22:10 -0400 >mfv via freebsd-questions wrote: > >> Use "echo -n" to NOT count the new line. > > s/count/produce/ > Hello, Yes, indeed. That is a significant distinction. Cheers ... Marek