Re: concatenate files under a specified order




"Chris F.A. Johnson" <cfajohnson@xxxxxxxxx> wrote in message
news:8e643$4862f593$cef88ba3$15308@xxxxxxxxxxxxxxx
On 2008-06-26, Ela wrote:

"Chris F.A. Johnson" <cfajohnson@xxxxxxxxx> wrote in message
news:c0922$4862eb3e$cef88ba3$28944@xxxxxxxxxxxxxxx

The ordering of files with wildcards is not arbitrary; they will
be resolved in alphabetical order according to your locale. If you
want case-insensitive ordering, use a locale in which ordering is
case-insensitive, e.g., en_us.

As I'm not admin that can change locale for the system,

You do not have to change it for the system; just change it for the
command that needs it:

LC_ALL=en_us
printf "%s\n" *

how can I, say, change all filenames to uppercase/lowecase to ensure
they will be concatenated correctly?

After testing, it seems that this does not solve case-sensitiveness problem.


.



Relevant Pages

  • Re: concatenate files under a specified order
    ... be resolved in alphabetical order according to your locale. ... want case-insensitive ordering, use a locale in which ordering is ... command that needs it: ...
    (comp.os.linux.misc)
  • Re: concatenate files under a specified order
    ... The ordering of files with wildcards is not arbitrary; ... be resolved in alphabetical order according to your locale. ... want case-insensitive ordering, use a locale in which ordering is ...
    (comp.os.linux.misc)
  • Re: concatenate files under a specified order
    ... be resolved in alphabetical order according to your locale. ... want case-insensitive ordering, use a locale in which ordering is ... As I'm not admin that can change locale for the system, how can I, say, ...
    (comp.os.linux.misc)
  • Re: Alphabetical sorts
    ... My application needs to handle different language sorts. ... Neil Cerutti wrote: ... alphabetical order. ... Check out strxfrm in the locale module. ...
    (comp.lang.python)
  • Re: For the love of GOD!!!
    ... > Perhaps because it's listing in alphabetical order? ... googling for `ls -a mixing dot files' first result shows it's a locale ... Perhaps make an ls wrapper which changes your locale if you don't like ...
    (Debian-User)