I have this file structure
user@laptop:/my/folder$ ls
control changelog patches postrm source
copyright.in mime postinst rules
and want to list all files without dot in name. Don't want use grep. Reverse look like:
user@laptop:/my/folder$ ls *[.]*
copyright.in
But when I try to add negation (^ or !) to achive my goal, it doesn't work:
user@laptop:/my/folder$ ls *[^.]*
control copyright.in changelog mime postinst postrm rules
patches:
series 03-include-unistd-for-kfreebsd
01-manpages-in-section-1-not-in-section-1l 04-unzip60-alt-iconv-utf8
02-branding-patch-this-is-debian-unzip 04-unzip60-alt-iconv-utf8~
source:
format
In output there is copyright.in listed, which is not what I want. When I write ?? instead of *, it works.:
user@laptop:/my/folder$ ls *[^.]??
control changelog mime postinst postrm rules
patches:
series 03-include-unistd-for-kfreebsd
01-manpages-in-section-1-not-in-section-1l 04-unzip60-alt-iconv-utf8
02-branding-patch-this-is-debian-unzip 04-unzip60-alt-iconv-utf8~
source:
format
Anybody knows how to make list of files in directory without dot in name using globbing?