In Linux I'm trying to monitor all subdirectories of the current directory and output their file counts. The command I currently have is:

```
watch 'for FILE in `find . -maxdepth 1 -mindepth 1 -type d | grep -v "unwanted\|directories\|here"`; do echo -n $FILE " "; find $FILE -type f | wc -l; done | column -t'

```

This works perfectly, except occasionally I get this error,

```
find: `FILE_NAME': No such file or directory

```

Where FILE\_NAME is the name of a file in one of the subdirectories.

Does anyone know why this would happen and how to fix it? Thanks!