I'd like to run a find
command and process the files it returns, but also echo a count of the files processed as it goes, to give me a sense of its progress.
Right now, my command is (as an example):
COUNT=0\; find . -name '*.*' -exec echo "$COUNT: \c" \; -exec echo {} \;
But as a result, I don't get the count to echo (and I can't figure out how to increment it). I'd like it to give me something like:
0: ./FileOne.txt
1: ./FileTwo.txt
...
205: ./FileTwoHundredAndFive.txt