I'm trying to rename several files. So I need those file names first. I'm using:
for FILE in $(find . -type f -name "*.flv" -exec basename {} \; ); do
echo "$FILE"
done
When I try just the find command, it returns the number of files correctly, but when Im using the for, I was expecting that ARQ would contain the entire name of a single file, but instead, it returns splited words of the filename. So how can I get the entire name, not just separated words of it?