SyntaxFix
Write A Post
Hire A Developer
Questions
If your find doesn't have a -printf option you can also use basename:
find ./dir1 -type f -exec basename {} \;