Add mode samples

This commit is contained in:
Jeremy Soller 2025-02-12 10:44:53 -07:00
parent 67946ccacc
commit ed5d053932
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA
2 changed files with 19 additions and 0 deletions

1
samples/mode/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/0*

18
samples/mode/create.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -ex
rm -f 0*
for umode in 4 5 6 7
do
for gmode in 0 4 5 6 7
do
for amode in 0 4 5 6 7
do
mode="0${umode}${gmode}${amode}"
touch "${mode}"
chmod "${mode}" "${mode}"
done
done
done