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*

3
  • This is a very clever work around the 'argument list too long' error. In my case, I have twenty thousand files, so I guess I would have to use a for loop from 0,..,20. Right? Commented Apr 26, 2012 at 14:18
  • @Paul Right, just break the list into as many chunks as you need, although at some point the find approach becomes easier than guess and check. Commented Apr 26, 2012 at 14:24
  • upvoted for the for solution. Somehow I could not get to figure out how to use find -regex to match my files and your solution works just fine! Commented Nov 2, 2021 at 14:13