Terminal is getting less socially awkward
Terminal has always been this cool kid, but a bit awkward socially. I bet it’s because he’s just shy. Let’s ease up on him, because today he has decided to talk a little with his closest friend: Finder.
Of all the toys he has, he is ok to share files he is playing with.
To ask him to do that, just type the following command:
$ showinfinder aFile
and the Finder will reveal it.
You can even ask him to show multiple files at once:
$ showinfinder aFile anOtherFile aLastFile
It works with absolute and relative file paths.
Once you get started on this playground, it can become really cool. For example, if you want to show in Finder all the png files you have on your Desktop, do this:
$ showinfinder ~/Desktop/*.png
Code source and binary file are on GitHub: showinfinder.

So, this is a wrap around the standard ‘open’ command, is it not? I always just open the enclosing folder …
@Axel : Yes, it is nothing more than a wrapper.
Sometimes, opening the enclosing folder is not really practical. In /usr/bin, on my machine, there is 1 116 commands. Scrolling to find the one you are looking for is not my definition of fun.
When using the showinfinder command, the files are selected in the Finder, ready to be used or dragged & dropped.