Add mode samples
This commit is contained in:
parent
67946ccacc
commit
ed5d053932
2 changed files with 19 additions and 0 deletions
1
samples/mode/.gitignore
vendored
Normal file
1
samples/mode/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
/0*
|
||||||
18
samples/mode/create.sh
Executable file
18
samples/mode/create.sh
Executable 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
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue