From owner-freebsd-questions@FreeBSD.ORG Mon May 18 13:01:04 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0B66A6F8 for ; Mon, 18 May 2015 13:01:04 +0000 (UTC) Received: from mail-qc0-x22e.google.com (mail-qc0-x22e.google.com [IPv6:2607:f8b0:400d:c01::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BD83814BA for ; Mon, 18 May 2015 13:01:03 +0000 (UTC) Received: by qcvo8 with SMTP id o8so88643003qcv.0 for ; Mon, 18 May 2015 06:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seibercom.net; s=google; h=date:from:to:subject:message-id:reply-to:organization:mime-version :content-type; bh=EaJIl2b1rhqfTGD21rvQMHAcCSaWJKVWLTNF2vV4dis=; b=K6EPghwNKgdpORqSiGAHihinugGmong/DqkalkSR3EgFQHV52ICAyG17Drqlz5vluZ 1iS//BxvLTpyzlTq2pxKXNQWnnOqVs/db5u99yfoN6AmJM/0KZ/l5Gmfw1sK4pEzLBKV d66H7FPUvCvt6i9Uda1wnz2caFopUSmjnY2Q4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:reply-to :organization:mime-version:content-type; bh=EaJIl2b1rhqfTGD21rvQMHAcCSaWJKVWLTNF2vV4dis=; b=K7hkhI++jQwcHdlTuq28VDOx+yN6fbyLRodmOdTXDv4sSlzf2rIHfsi6qhZdxXBUe8 0JZuM9AI+fnQcIf+5IVI+UQ2cxyfVxvr/4lTDE4k/sX+kZZPxY//16W+uuHbtw/tO/14 QuzWZmgtfVE4ZptGs0SAFxxFLFzCne809xTIGM4J/4Now+iw5kbwLRXWOSpAwPiRqt1k lfIrdNQhsrim4H4rvn5toNS0rx12X7LbU3ryp/PLudEeb9pWSQlHssFa87tZED3QI+G0 5G/QwCmtzaWwl59D1q0LUhrOzhMJcUGy4MUl821sGQeAnsyx9FOdS8sI+JnzmabZ3Tpd mFag== X-Gm-Message-State: ALoCoQnUyrEzHNXlrzGRjVc2cEVaP4F+9C1pcqDXoXJ+Nlxn2RTvFbs0Lf1fOCaT4KRpIgZ3+7zB X-Received: by 10.55.15.129 with SMTP id 1mr48157787qkp.29.1431954062510; Mon, 18 May 2015 06:01:02 -0700 (PDT) Received: from scorpio.seibercom.net (cpe-174-109-23-221.nc.res.rr.com. [174.109.23.221]) by mx.google.com with ESMTPSA id 34sm6987806qkr.47.2015.05.18.06.01.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 May 2015 06:01:02 -0700 (PDT) Received: from localhost (cpe-174-109-23-221.nc.res.rr.com [174.109.23.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by scorpio.seibercom.net (Postfix) with ESMTPSA id 3lr0p44scGz3DlVx for ; Mon, 18 May 2015 09:01:00 -0400 (EDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98.7 at scorpio.seibercom.net Date: Mon, 18 May 2015 09:00:51 -0400 From: Jerry To: FreeBSD FreeBSD Subject: Problem with sed Message-ID: <20150518090051.6600f32a@seibercom.net> Reply-To: FreeBSD FreeBSD Organization: seibercom NET X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/TIBE1TB0pBTV_T3ugX04QVx"; protocol="application/pgp-signature" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2015 13:01:04 -0000 --Sig_/TIBE1TB0pBTV_T3ugX04QVx Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I rarely use sed, so I admit to not being fully acquainted with its idiosyncrasies,; however, this one is really annoying. I am using this command in an attempt to remove empty lines: $ sed -i /^$/d /var/tmp/myfile.txt and get this error: sed: 1: "/var/tmp/myfile.txt": undefined label 'mp/myfile.txt' I don't understand why. I am following the example I found in the "sed & aw= k" handbook by "O'Reilly" --Sig_/TIBE1TB0pBTV_T3ugX04QVx Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVWeKEAAoJEElTsHIJnX8eflkIAIPDacp5bAZibAA/7OVEw0d+ fXJ2xaGm1L3ALkMr+nbv1Mv0+pcV+Eh6+nTKtBEhs12UlIQNxQ7GV6HF8zT7MQk0 CqVVo9BE7PZ3RgICxATAHK7g/XZDIJ8LU4LoMBFraRrU8qXhOH6FVeW8u2KHvuqB fH1RjpS1okCLhGe+xHtiGvm3lZK8MKCKN7DY4s6gHt/dExT1S62n918nopEFGZ+6 TaDiafVqEBk+AdgbeBK4jHOWRpc4hZ5vqJ4fEdfoRlA5HTk5wztlKKGcuV90dtLH +n3+Tg4T0HLlw165COfqjFRHLCJDJhT/AoXtiWfUc0OXpgop8LoR276kcSrdvSo= =hwKC -----END PGP SIGNATURE----- --Sig_/TIBE1TB0pBTV_T3ugX04QVx--