Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Feb 2009 17:15:14 +0100
From:      t-u-t <marshc187@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: shell commands - exclusion
Message-ID:  <332f78510902040815s2134763dh64b914f9234eb0eb@mail.gmail.com>
In-Reply-To: <20090204091459.G16842@qroenaqrq.6qbyyneqvnyhc.pbz>
References:  <332f78510902040635k6675a9b6u434879b42c66a579@mail.gmail.com> <20090204091459.G16842@qroenaqrq.6qbyyneqvnyhc.pbz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 4, 2009 at 4:26 PM, Lars Eighner <luvbeastie@larseighner.com>wrote:

>
> In general this is not possible.  A few commands have exclusion options,
> but
> not many.  Some shells have ways of managing glob exclusion (it's the shell
> that expands wildcard patterns).  Setting GLOBIGNORE works in BASH, whether
> something similar works in others, you will have to investigate yourself.
> But that isn't one line as you have to set GLOBIGNORE.  BASH also has an
> extended pattern matching option which includes negation, so you might want
> to look into that.
> pkg_delete can take regular expression arguments (see -x).  Perhaps you
> can devise one that will do the trick.  Beware, however: it can take
> multiple regular expressions and deletes package which match ANY (not all)
> of them.
> Shell globbing is the operation by which the shell expands wildcards and
> finds matches.  What you want to do exclude things from shell globbing.
> watch out anything involving recursion --- things can happen that you don't
> expect unless you really know what you are doing.
>

thank you,
i can keep to regular painstaking methods for now, but would like to get the
hang of it in future;. knowing what i'm looking for now is a big step for
me.
thanks again



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