From owner-freebsd-ports@freebsd.org Fri Apr 8 02:47:58 2016 Return-Path: Delivered-To: freebsd-ports@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 CC113B079A4 for ; Fri, 8 Apr 2016 02:47:58 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id BC04A1FE5 for ; Fri, 8 Apr 2016 02:47:57 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from segfault-nmh-helo.tristatelogic.com (localhost [127.0.0.1]) by segfault.tristatelogic.com (Postfix) with ESMTP id E1E323ADFA for ; Thu, 7 Apr 2016 19:47:50 -0700 (PDT) From: "Ronald F. Guilmette" To: freebsd-ports@freebsd.org Subject: Deriving base port/package names Date: Thu, 07 Apr 2016 19:47:50 -0700 Message-ID: <51300.1460083670@server1.tristatelogic.com> X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2016 02:47:58 -0000 Given a list of all current FreeBSD ports/package, such as a (plain text version) the list found here: https://www.freebsd.org/ports/master-index.html and assuming that all text past the ' -- ' has already been deleted from each line, what would be a proper sort of sed command to extract _just_ the port/package names, without the version numbers attached?