saphyr-serde/bin/new-test-id
Ethiraric e303cbe543 Squashed 'parser/tests/yaml-test-suite/' content from commit ccfa74e5
git-subtree-dir: parser/tests/yaml-test-suite
git-subtree-split: ccfa74e56afb53da960847ff6e6976c0a0825709
2024-10-12 16:15:38 +02:00

19 lines
252 B
Bash
Executable file

#!/usr/bin/env bash
(
while true; do
id=$(
cat /dev/urandom |
LC_ALL=C tr -cd A-HJ-NP-Z2-9 |
fold -w4 |
grep '[A-Z]' |
grep '[0-9]' |
head -n1
)
[[ -e src/$id.yaml ]] || break
done
echo "$id"
)