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.

2
  • If I do your ls it will list all of files even after adding >/dev/null. Commented Sep 13, 2017 at 13:04
  • @Freedo yes, of course. You asked for *numbers*avi which will list everything. If you want to find only missing files, you need to give a better explanation in your question. You show file names that consist entirely of numbers ({369..422}.avi) but the say "The numbers are not in the end of the file but in the middle. So I should need something like *numbers.avi*" So I gave you what you asked for. Note that the loop in the end prints out the missing ones only. I find the loop more useful since you can trivially modify it to do something about each of the missing files. Commented Sep 13, 2017 at 13:41