From owner-freebsd-questions@FreeBSD.ORG Sun Feb 15 06:57:22 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 912611065675 for ; Sun, 15 Feb 2009 06:57:22 +0000 (UTC) (envelope-from dimitar.vassilev@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 49F4D8FC14 for ; Sun, 15 Feb 2009 06:57:22 +0000 (UTC) (envelope-from dimitar.vassilev@gmail.com) Received: by yx-out-2324.google.com with SMTP id 31so951342yxl.13 for ; Sat, 14 Feb 2009 22:57:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=IH6NAIImOLdJS8R4ODfdY7hThkLBNsbVwX70MYn+35Q=; b=TW/h/jYwH0K3qmZ0vmxI+/9RJhnLqseWgml7P0BFz4pYjmKft8ZVsHBjWh1V/3Nxcz jhkpKQtapyQQLe9sNrAZfHLoJO9sBWb5lCP6MXiDz6enWFHYb7A0PxYpLLtuDrSrV4Ms 8Inn+sua+ElbuhCFyC53iV9SV311OmxKUj3mo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ciX9gdkXzDiQaUIqB/b4Bn0/kIFS341U2dE9rJ4eH+aX1G/G/Yn6YDvAvsRLM00Uj4 DvSAScXy0dmpwNiitT1OzRTengNyqUQYVy1wh/262db2behPgXE3592SMwRizH7he00z LrNWJ3i88sAFFmVZ6PGc2iOuLJWkBFbQh1jiw= MIME-Version: 1.0 Received: by 10.151.39.21 with SMTP id r21mr3568312ybj.210.1234679187270; Sat, 14 Feb 2009 22:26:27 -0800 (PST) In-Reply-To: <18838.52454.185642.297737@jerusalem.litteratus.org> References: <18838.52454.185642.297737@jerusalem.litteratus.org> Date: Sun, 15 Feb 2009 08:26:27 +0200 Message-ID: <59adc1a0902142226ueb6e878h51076eec2cc58609@mail.gmail.com> From: Dimitar Vasilev To: Robert Huff Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org Subject: Re: OT: sed + exit status X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2009 06:57:23 -0000 > > > . Is sed "successful" is there are no instances of FOO? Or > only if there is at least one instance of FOO and it is successfully > replaced by bar? > > Respectfully, > > > Robert Huff > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > Hi Robert, try to use truss or strace to see the exit codes in both cases.