This one is my favorite because it allows for a recursive for loop in ZSH. You could use find to do the job, but you can have variables and write visually better code with this for loop.
Note that it might not work in Bash.
I would be happy to learn an even better way of doing it though!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This one is my favorite because it allows for a recursive for loop in ZSH. You could use
find
to do the job, but you can have variables and write visually better code with this for loop.Note that it might not work in Bash.
I would be happy to learn an even better way of doing it though!