Code: Alles auswählen
DIR="/home/";
OUTPUT=`find $DIR -type d -perm -2 -ls`;
echo $OUTPUT;
mfg
Twilo
Code: Alles auswählen
DIR="/home/";
OUTPUT=`find $DIR -type d -perm -2 -ls`;
echo $OUTPUT;
Code: Alles auswählen
gms@gms1 ~/tmp/test $ DIR=~/tmp/test;
gms@gms1 ~/tmp/test $ mkdir t1 t2
gms@gms1 ~/tmp/test $ chmod 777 t1 t2
gms@gms1 ~/tmp/test $ OUTPUT=`find $DIR -type d -perm -2 -ls`;
gms@gms1 ~/tmp/test $ echo "$OUTPUT"
5249308 4 drwxrwxrwx 2 gms gms 4096 Aug 18 23:31 /home/gms/tmp/test/t2
5249268 4 drwxrwxrwx 2 gms gms 4096 Aug 18 23:31 /home/gms/tmp/test/t1
Code: Alles auswählen
gms@gms1 ~/tmp/test $ echo a b
a b
gms@gms1 ~/tmp/test $ echo "a b"
a b