Find missing numbers in continuous filenames (advanced ls & find)
问题 Let's say I have a script that generates incrementing folder names over time (100, 101, 102, 103, 104, etc...). These folders are synced between machines and there is a chance of creation failure for any given folder on system 2. System 1 is always in sync: 100/ 101/ 102/ 103/ 104/ etc... System 2 may have errors: 100/ 102/ 103/ etc... (as you can see, 101/ & 104/ are missing on system 2) How can I generate a list of all the missing folders on System 2? P.S. Rsync is not really an option