You can do a great deal with the find command and this time we specify that we want to find files and then use that output to count the number of files in a directory.
It's not complicated, but is a good way to use commands you already have to accomplish your goals.
It seems like this one missed the publication schedule. So, I had to fire it off manually when I noticed. Sometimes WordPress messes this sort of thing up but it's seldom, so I'll take it.
It's not complicated, but is a good way to use commands you already have to accomplish your goals.
Count The Files In A Directory • Linux Tips
I think I've covered this before with the ls command but this time we'll count the files in a directory with the find command.
linux-tips.us
It seems like this one missed the publication schedule. So, I had to fire it off manually when I noticed. Sometimes WordPress messes this sort of thing up but it's seldom, so I'll take it.