From owner-freebsd-questions@FreeBSD.ORG Tue Jun 21 15:33:28 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BF0E106564A for ; Tue, 21 Jun 2011 15:33:28 +0000 (UTC) (envelope-from lars@oddbit.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 56CE48FC08 for ; Tue, 21 Jun 2011 15:33:28 +0000 (UTC) Received: by iwr19 with SMTP id 19so5545887iwr.13 for ; Tue, 21 Jun 2011 08:33:27 -0700 (PDT) Received: by 10.42.243.3 with SMTP id lk3mr7667262icb.161.1308670407446; Tue, 21 Jun 2011 08:33:27 -0700 (PDT) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx.google.com with ESMTPS id a9sm1555776icy.18.2011.06.21.08.33.26 (version=SSLv3 cipher=OTHER); Tue, 21 Jun 2011 08:33:26 -0700 (PDT) Received: by iyb11 with SMTP id 11so2606436iyb.13 for ; Tue, 21 Jun 2011 08:33:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.37.4 with SMTP id v4mr5524107ibd.9.1308670406013; Tue, 21 Jun 2011 08:33:26 -0700 (PDT) Received: by 10.231.39.137 with HTTP; Tue, 21 Jun 2011 08:33:25 -0700 (PDT) In-Reply-To: References: <73E783DC-E32B-4DE3-AFF6-4A75D1D3A00A@conundrum.com> Date: Tue, 21 Jun 2011 11:33:25 -0400 Message-ID: From: Lars Kellogg-Stedman To: Matthew Pounsett Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: sed argument processing b0rked? 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: Tue, 21 Jun 2011 15:33:28 -0000 > Aha... I knew it had to be something. =C2=A0I couldn't quite wrap my head= around the idea that sed is misbehaving.. it seems way too old and set in = its ways for that. =C2=A0 However, I did get the -i'' syntax from somewhere= .. perhaps it's a GNUism and I just forgot where I picked it up. In GNU sed, the -i option does not require an argument, so "sed -i -e 's/a/b/' -e 's/c/d/' ..." is legal syntax.