Hi,
I'm trying to use ls with a negative form of wildcard, e.i. I want to list
all files that so not have a certain ending. Is there a way of doing this?
Thomas Mitchell
> I'm trying to use ls with a negative form of wildcard, e.i. I want to list
> all files that so not have a certain ending. Is there a way of doing this?
> Thomas Mitchell
--
"Los videojuegos No afectan a los ni?os. Si fuera as, y el Comecocos nos
hubiera afectado a nosotros cuando eramos ni?os, la gente de nuestra
generacin estara deambulando por lugares oscuros, comiendo pldoras
mgicas y escuchando ritmos electrnicos repetitivos."
Kristian Wilson, Nintendo, Inc., 1989.
In a Bourne shell or with some kshs, this will return the listQuote:> $ ls *[^html]
With bash, zsh and some other shells, this will return the list
of filenames that end with neither of the h, t, m, or l
characters.
(excluding dot files)
Will return the list of filenames (or only some lines of them)Quote:> or
> $ ls | grep '*[^html]'
This question was asked few days ago (and many times before) in
comp.unix.shell.
--
Stphane
zsh and other shells have extended glob options when enabled which allow
you to do things like
ls ^*.html
or
ls *~*.html
--
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ Substance is one of the greatest of our illusions.
\__/ Sir Arthur Eddington
The laws list / http://www.alcyone.com/max/physics/laws/
Laws, rules, principles, effects, paradoxes, etc. in physics.
1. Wildcard DNS, Wildcard ServerName, Rewrite/Problems.
Hello all,
I'm having some trouble with setting up a virtual system that points
all sublevel domains to a single file which does all the work. On a static
name, such as www.domain.com, the rules work, and the page is rewritten
properly, and the code works fine. When wildcarded, the server goes into an
endless loop of 302 redirects. Example:
DNS:
* IN A 128.0.0.1
<VirtualHost 128.0.0.1>
DocumentRoot /www/
ServerName *.domain.com
RewriteEngine On
RewriteOptions inherit
</VirtualHost>
Rules (inherited from primary host):
RewriteCond %{REMOTE_ADDR} .*
RewriteRule ^/robots.txt /www/robots.txt [L]
RewriteCond %{REMOTE_ADDR} .*
RewriteRule ^/(.*) http://%{HTTP_HOST}/engine/index.html [L]
Can anyone shed some light on how to fix this? I need to have the response
sent back as a 200, which is what it does when using a fixed name such as
www.domain.com.
Any help would be appreciated.
Thanks,
Mike
2. Where are the 3des/esp modules for Sol8?
4. external laptop display (2 monitors 1 card)
6. Future Domain SCSI : BIOS ???
10. Renaming Unix Files with Wildcard
11. .rhosts - how to enable wildcard remsh access
12. excluding files from tar creation using wildcards