I have a directory that contains 800 subdirectories named
disp-001 ... disp-800. All these sub-directories need to contain a specific file say
One among them does not contain the file and I need to find the folder that does not have the file.
If I try
find . -name "stdout"
it returns me the values of all files, but they are not ordered from 001 to 800, which makes it very difficult for me to identify the folder. Is there a way to order the output such that they are ordered numerically?
I'm leaving this question unedited to demonstrate (atleast to myself) a classic XY problem. All I needed was to identify directories not containing a particular file, but instead this question was about a particular attempted solution to the problem. The solution for finding a directory that does not contain a particular file is provided here.