I need to create a Bash script to go into every user's home folder, seek out a wp-content folder, create a directory uploads under it, and then chmod 0756 uploads.
How do I achieve this?
I imagine I need to use find with a regexp/regex, and then tell it to run another bash script on the results.
Something like this should work (I haven't tested it)
The above answer is a better one, but here is a primitive, but functional, alternative:
This assumes you are in the parent directory of all your users, and they are in the same directory.
This will also fail if there is a file named "uploads", but will continue on.
Good luck,
--jed