I want to write a script, but I want an if statement so it will run only if the number of files in the directory are greater than 1. Is this possible?
I needed to use this:
The reason why none of the solutions posted here worked is because of the following. The script is executing the statements AGAINST the directories, it's not actually CD'ing IN to the directories. By telling it what folder I'm working with ($dir) it gets the hint and works as expected.
I will use something like:
This approach will only count
Don't forget to change