Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Okay, I confirmed that it is a shell option by asking a very
knowledgeable co-worker. He looked it up and you can use the following
command to disable case for wild card expansion in BASH:
shopt -s nocaseglob
Also, as an example of what ls * is actually doing, do the following....
echo *
Interesting.... :-)
ls is not for finding files, it's for listing the contents of the
current directory. You are just lucky that you can use the shells wild
card process to limit the listing so you can find what you want in it.
Find is for finding files.
Shannon Spurling
WAN Engineer -Specialist
MOREnet, Network Services, Core Network
3212 LeMone Industrial Blvd.
Columbia, MO 65201
Main:(573) 884-7200 Fax:(573)884-6673
EMAIL:PROTECTED
EMAIL:PROTECTED
-----Original Message-----
From: EMAIL:PROTECTED
[mailto:EMAIL:PROTECTED] On Behalf Of Mike Miller
Sent: Thursday, October 21, 2004 2:33 PM
To: EMAIL:PROTECTED
Cc: MLUG membership
Subject: [MLUG] ls features
Dear GNU Developers:
This is not a bug report. It is a feature request. Sorry for sending
it
here, but I don't know where else to send it.
The 'ls' command has many great features/options but case insensitivity
is
not one of them. Also, things like 'ls *' will fail if the directory
listing is too long. Other GNU tools such as 'locate' and 'find' can
handle case insensitivity and larger numbers of files, but neither of
those programs has the features of 'ls'. While it may be possible to
use
'find' with 'ls' to do case insensitive directory listings and other
nice
things, it is not convenient.
Therefore, I suggest that either a case-insensitivity option be added to
'ls,' or that a secondary ls-like command be developed that will allow
for
case insensitivity and listing of large numbers of files. I believe
that
such a program would be widely used.
Thank you for considering my suggestion.
Regards,
Mike
--
Michael B. Miller, Ph.D.
Assistant Professor
Division of Epidemiology and Community Health
and Institute of Human Genetics
University of Minnesota
http://taxa.epi.umn.edu/~mbmiller/
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members