4 added 13 characters in body
source | link

Personally, I would use the shell for that instead:

$ for dir in disp-{001..800}; do [ -f "$dir"/stdout ] || echo "$dir"; done
disp-389

In my test, disp-389 was the only directory lacking that file and so the only one printed.

If your shell doesn't support that form of brace expansion, just use for dir in disp* or, assuming you want to check all directories, for dir in */.

Personally, I would use the shell for that instead:

$ for dir in disp-{001..800}; do [ -f "$dir"/stdout ] || echo "$dir"; done
disp-389

In my test, disp-389 was the only directory lacking that file and so the only one printed.

If your shell doesn't support brace expansion, just use for dir in disp* or, assuming you want to check all directories, for dir in */.

Personally, I would use the shell for that instead:

$ for dir in disp-{001..800}; do [ -f "$dir"/stdout ] || echo "$dir"; done
disp-389

In my test, disp-389 was the only directory lacking that file and so the only one printed.

If your shell doesn't support that form of brace expansion, just use for dir in disp* or, assuming you want to check all directories, for dir in */.

3 added 139 characters in body
source | link

Personally, I would use the shell for that instead:

$ for dir in disp-{001..800}; do [ -f "$dir"/stdout ] || echo "$dir"; done
disp-389

In my test, disp-389 was the only directory lacking that file and so the only one printed.

If your shell doesn't support brace expansion, just use for dir in disp* or, assuming you want to check all directories, for dir in */.

Personally, I would use the shell for that instead:

$ for dir in disp-{001..800}; do [ -f "$dir"/stdout ] || echo "$dir"; done
disp-389

In my test, disp-389 was the only directory lacking that file and so the only one printed.

Personally, I would use the shell for that instead:

$ for dir in disp-{001..800}; do [ -f "$dir"/stdout ] || echo "$dir"; done
disp-389

In my test, disp-389 was the only directory lacking that file and so the only one printed.

If your shell doesn't support brace expansion, just use for dir in disp* or, assuming you want to check all directories, for dir in */.

2 added 115 characters in body
source | link

Personally, I would use the shell for that instead:

$ for dir in disp-{001..800}; do [ -f "$dir"/stdout ] || echo "$dir"; done
disp-389

In my test, disp-389 was the only directory lacking that file and so the only one printed.

Personally, I would use the shell for that instead:

$ for dir in disp-{001..800}; do [ -f "$dir"/stdout ] || echo "$dir"; done
disp-389

In my test, disp-389 was the only directory lacking that file and so the only one printed.

Personally, I would use the shell for that instead:

$ for dir in disp-{001..800}; do [ -f "$dir"/stdout ] || echo "$dir"; done
disp-389

In my test, disp-389 was the only directory lacking that file and so the only one printed.

1
source | link