I want to echo out the filename portion of a find on the linux commandline. I\'ve tried to use the following:
find www/*.html -type f -exec sh -c \"echo $(b
Try this instead :
find www/*.html -type f -printf '%f\n'
If you want to do it with a pipe (more resources needed) :
find www/*.html -type f -print0 | xargs -0 -n1 basename