Welcome stranger

touch_chmod.ps1.txt

#!/bin/bash
for i in {0..7}
do
for ii in {0..7}
do
for iii in {0..7}
do
lol=$(echo ${i}${ii}${iii} |sed -e s/0/---/g -e s/1/--x/g -e s/2/-w-/g -e s/3/-wx/g -e s/4/r--/g -e s/5/r-x/g -e s/6/rw-/g -e s/7/rwx/g)
#echo "$lol"
touch -- "$lol"
chmod ${i}${ii}${iii} -- "$lol"
done
done
done