Hi all
I have the following names of files: When x is a number (x could be number between 0 to 100)
fileX
fileXblabla
fileX.X
fileX.Xblabla
For example
fileX --> file1
fileXblabla --> file1blabla
fileX.X --> file5.3
fileX.Xblabla --> file2.9blabla
my question is how to match each one of the following kind of files under directory (by ls and Regular Expressions or something else)
For example
fileX
Under directory we want to get all files like: file1 or file2 or file3 …..file100
fileXblabla
Under directory we want to get all files like: file1bla or file2bla or file3bla …..file100bla
fileX.X
Under directory we want to get all files like: file1.1 or file2.1 or file3.1 …..file100.100
fileX.Xblabla
Under directory we want to get all files like: file1.1bla or file2.1bla or file3.1bla …..file100.100bla