[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
ls sort ignore . in file names
From :
Valérie et David VANTYGHEM
Subject :
ls sort ignore . in file names
Date :
Thu, 6 Mar 2025 21:50:13 +0100
User-agent :
Mozilla Thunderbird
Hello,
When I list files in a directory, they are sorted like . before file
extension is ignored.
|$ ls -AR --format=single-column ./DISQUETTE\ 1/*|
‘./DISQUETTE 1/CONF.ENG’
‘./DISQUETTE 1/CONF.FRE’
‘./DISQUETTE 1/CONF.GER’
‘./DISQUETTE 1/CONFIRM.ENG’
‘./DISQUETTE 1/CONFIRM.FRE’
‘./DISQUETTE 1/CONFIRM.GER’
‘./DISQUETTE 1/CONFIRM.ITA’
‘./DISQUETTE 1/CONFIRM.SPA’
‘./DISQUETTE 1/CONF.ITA’
‘./DISQUETTE 1/CONF.SPA’
tree sort files without ignoring . before file extension:
|$ tree -daifv --noreport ./DISQUETTE\ 1/|xargs -I {} tree -aifv -L 1
--noreport {}|xargs -I {} find {} -prune -type f|
./DISQUETTE 1/CONF.ENG
./DISQUETTE 1/CONF.FRE
./DISQUETTE 1/CONF.GER
./DISQUETTE 1/CONF.ITA
./DISQUETTE 1/CONF.SPA
./DISQUETTE 1/CONFIRM.ENG
./DISQUETTE 1/CONFIRM.FRE
./DISQUETTE 1/CONFIRM.GER
./DISQUETTE 1/CONFIRM.ITA
./DISQUETTE 1/CONFIRM.SPA
|Is it a bug or am I missing a ls option?|
|Test ZIP file:
https://infolib.re/blog/wp-content/uploads/2025/02/DISQUETTE-1.zip
|
--
Passez à Linux :https://infolib.re
.--.
|o_o |
||_/ |
// \\ Envoyé depuis mon Linux
(| |)
/ \_ _/ \
\___)=(___/
ls sort ignore . in file names ,
Valérie et David VANTYGHEM <=