I have a directory in which files are created as
In the filename abc.sh, the ID is always the same (there are 1000's of .sh's and ID's combination in the environment). datetimestamp and id change for each file generated. I am trying to use
ls -ltr abc.sh.*.log. But it returns all filenames which match the expression. I need only unique ID filenames not caring what datetimestamp and id are.
Can anyone please help?