Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 2015 09:00:51 -0400
From:      Jerry <jerry@seibercom.net>
To:        FreeBSD FreeBSD <freebsd-questions@freebsd.org>
Subject:   Problem with sed
Message-ID:  <20150518090051.6600f32a@seibercom.net>

next in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150518090051.6600f32a>