This question already has an answer here:
I have a bunch of files in a folder that all end in a different version number, like 1, 2, 3, etc. Some of them have extensions, some of them don't. Is there any way I could use a command like ls, find, or grep that can list all of the files that end in a specific character, like '1', that may or may not end in an extension?
For example, in a directory, I have the following files:
file.1. I'd want to do something that would return
ver1, but not
file.1, if that helps any. I've tried using something like
ls *[1.]* but that's not doing what I want...