I have a specific order of files that I want to list if they exist; around 40 files. Some kind of precedence. So I tried:
ls -1d /opt/foo/lib.jar /opt/bar/lib.jar
I expected this to list /opt/foo/lib.jar first if both exist.
But actually it prints the bar first and the foo after that.
Is there some way to make ls list the entries in the order given in parameters?
Or some alternative approach with find?