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/
GNU find natively supports this using -printf so all that you need to do is
-printf
find ... -printf '%f\n'
Update: Oops... this was already covered in the answer by @glenn-jackman which I somehow missed to see.