What does {} do in find command?
Answer
If you run find with exec , {} expands to the
filename of each file or directory found with
find (so that ls in your example gets every found filename as an argument – note that it calls ls or whatever other command you specify once for each file found).
Answer
If you run find with exec , {} expands to the
filename of each file or directory found with
find (so that ls in your example gets every found filename as an argument – note that it calls ls or whatever other command you specify once for each file found).