From owner-freebsd-questions@freebsd.org Thu Dec 7 10:42:56 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 C5850E82E63 for ; Thu, 7 Dec 2017 10:42:56 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E5F080EE9 for ; Thu, 7 Dec 2017 10:42:55 +0000 (UTC) (envelope-from frank2@fjl.co.uk) Received: from [192.168.1.125] (host81-134-87-65.range81-130.btcentralplus.com [81.134.87.65]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id vB7AQD7l038088 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Thu, 7 Dec 2017 10:26:15 GMT (envelope-from frank2@fjl.co.uk) Message-ID: <5A29174B.3030608@fjl.co.uk> Date: Thu, 07 Dec 2017 10:26:19 +0000 From: Frank Leonhardt Reply-To: frank2@fjl.co.uk Organization: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: grep problem References: <20171207005542.43a7f55f@gumby.homeunix.com> <20171207011948.65dbfa00@gumby.homeunix.com> In-Reply-To: <20171207011948.65dbfa00@gumby.homeunix.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2017 10:42:56 -0000 On 07/12/2017 01:19, RW via freebsd-questions wrote: > Never mind, the shell handles the quotes, so grep sees -b as an option > rather than a pattern. :-) To find these things out the easy way, stick "echo" in front of the line, immediately a quoting problem is suspected.