Date: Sun, 18 Apr 1999 19:05:34 -0500 From: David Kelly <dkelly@hiwaay.net> To: Randall Hopper <aa8vb@ipass.net>, questions@FreeBSD.ORG Subject: Re: Deleting packages - a newbie question Message-ID: <199904190005.TAA41276@nospam.hiwaay.net> In-Reply-To: Message from Mark Ovens <marko@uk.radan.com> of "Sun, 18 Apr 1999 19:27:14 BST." <19990418192714.B252@marder-1>
next in thread | previous in thread | raw e-mail | index | archive | help
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) <TAB> is ^I, tab: % /var/db/pkg/fetch<TAB> 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<TAB> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904190005.TAA41276>