I did consider that, but got lazy; replacing ls with glob meant also having to split off the basename of the file from the path. I liked the simplicity.
Update: having looked at this again, I see glob returning file names only if that path is not included. That makes for a more portable solution.
In reply to Re^3: mkdir in loop - overwrite danger?
by GotToBTru
in thread mkdir in loop - overwrite danger?
by fasoli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |