Fetching all PHP files and store their size
I like to monitor every php file with their size (and if a new file has
been added). On my server are more than 200 000 of em so find takes very
long.
This is what I do:
ls -1 --size $(find -P . -type f -name "*.php")
This takes hours.
Is there anything I can do to make this monitoring faster? (Except a
faster Server) Or is there any trick that give a file list with file size
or crc32 ?
In addition I do not know if this would be faster:
find . -P -type f -name "*.php" -exec ls -1 --size \{} \;
No comments:
Post a Comment