I am trying to get only the names from the search result using find, but it always includes the directories too. How can I print only the names (or assign to a variable) using find
find trunk/messages/ -name "*.po" -printf '%f\n'
a similar command to assign this to a variable e.g. "resource" to use it later on.
EDIT: And if possible only the name excluding the extension.