The directory tree is like this:
. ├── A_123 │ └── 123.txt ├── A_456 │ ├── tmp │ └── tmp.log └── A_789 └── 789.txt There're 3 directories (A_123, A_456, A_789). The pattern of a directory name is: A_{numbers} and the file I'm interested in is {numbers}.txt.
I was wondering whether there's a way to get the directories A_{numbers} that has no {numbers}.txt file in them. For example above, this script should return:
./A_456 as A_456 doesn't have 456.txt in its folder but A_123 and A_789 have their {numbers}.txt files in the relevant folder.
Anyone has ideas about this? Thanks!