Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Parsing the output of ls like that will also fail with names containing whitespace, or possibly other characters, see mywiki.wooledge.org/BashPitfalls#for_i_in_.24.28ls_.2A.mp3.29 Commented Sep 29, 2017 at 20:15
  • Well yeah this is just the rough idea. Who said this is complete bullet proof source code. This is just to give him idea how one could do it. @ikkachu Commented Sep 29, 2017 at 20:28