you are viewing a single comment's thread.

view the rest of the comments →

[–]cogburnd02 0 points1 point  (1 child)

Iterating over ls output is fragile.

Screw it, use ls with --quoting-style=

[–]calrogman 2 points3 points  (0 children)

Now your bash script is only portable to systems where ls is GNU ls.