From owner-freebsd-questions Sun Apr 18 17: 8:13 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id C3E4B14D7E for ; Sun, 18 Apr 1999 17:08:09 -0700 (PDT) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (tnt8-216-180-15-176.dialup.HiWAAY.net [216.180.15.176]) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id TAA22291; Sun, 18 Apr 1999 19:05:42 -0500 (CDT) Received: from nospam.hiwaay.net (nospam.hiwaay.net [127.0.0.1]) by nospam.hiwaay.net (8.9.2/8.9.2) with ESMTP id TAA41276; Sun, 18 Apr 1999 19:05:34 -0500 (CDT) (envelope-from dkelly@nospam.hiwaay.net) Message-Id: <199904190005.TAA41276@nospam.hiwaay.net> X-Mailer: exmh version 2.0.2 2/24/98 To: Randall Hopper , questions@FreeBSD.ORG From: David Kelly Subject: Re: Deleting packages - a newbie question In-reply-to: Message from Mark Ovens of "Sun, 18 Apr 1999 19:27:14 BST." <19990418192714.B252@marder-1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 18 Apr 1999 19:05:34 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark Ovens writes: > Why not extend what you already do? > > pkg_delete `pkg_info -Ia | grep coloredit | awk '{print $1}'` Change your shell to enable filename expansion and you can quickly read the version number something like this (using tcsh) is ^I, tab: % /var/db/pkg/fetch on my system the above expands to: % /var/db/pkg/fetchmail-5.0.0 Then taking advantage of tcsh's emacs like command line editing one can type: % pkg_delete /var/db/pkg/fetch which expands to (redundant tonight): % pkg_delete /var/db/pkg/fetchmail-5.0.0/ then the DELETE (or backspace) key and ^B can trim off the excess. Can probably do similar with bash. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message