Date: 21 Jun 2019 22:19:53 -0400 From: "John Levine" <johnl@iecc.com> To: freebsd-questions@freebsd.org Cc: freebsd@edvax.de Subject: Re: How to un-select files in shell wildcard patterns Message-ID: <20190622021954.69A422016305A5@ary.qy> In-Reply-To: <20190622014026.88ddb051.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
>This is exactly what I an trying to avoid, i. e., not depend on >external programs, but instead use what the shell offers interally. >So, is it correct that there is no shell builtin mechanism for >this kind of "negative selection"? You can fake it. Undebugged code follows: for i in * do case "$i" in *.tex) ;; *) echo "not a tex file: $i" ;; esac done for i in * do case "$i" in *a*) ;; *) echo "no a's here: $i" ;; esac done
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190622021954.69A422016305A5>