I want to list files that contain only seven characters (without extensions) in their filename.
I have these files in a directory, for example:
1234567
bar.12
dog.cat
1234567.txt
tst.new
big.tst
abcdefg
abcd.efg
I want to list files using the command ls
to find file names without extensions that have exactly 7 characters. I want the output to look something like this:
$ ls <some kind of code>
1234567
abcdefg
I prefer not to use any globs of any sort, or the find
command.