I\'m using the find command in a ksh script, and I\'m trying to retrieve just the filenames, rather than the full path. As in, I want it to return text.exe, not //severname/
find ... -exec basename {} \;
will also do the trick .. but as @Kent asks, why do you want this?