[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Bash-Scripting



Christian Knoke <chrisk@cknoke.de> (So 02 Dez 2018 19:04:10 CET):
> Wenn ich mir die Sortierung ansehe, dann werden grosse und kleine Buchstaben
> gleich behandelt. Auch bei ls ist das so.

Nein, das hängt von LC_COLLATE ab.

$ touch a A z Z ä Ä ß
$ LC_COLLATE=C bash -c 'echo *'
$ LC_COLLATE=de_DE.UTF-8 bash -c 'echo *'

Und besonders viel Spaß mit mit Ranges wie [A-Z]...

--
Heiko

Attachment: signature.asc
Description: PGP signature


Reply to: