not sure about the reverse thing, you may need to store in some variables and what not.
‘ls -r’ should list recursively e.g. iterate through libraries as they come.
maybe, and im not putting my head on the block here.
but ‘ls -R (path)| sort -R’
for(( i=0 ; i<${dirs[@]} ; i++ ))
do
echo "I am larger"
done
for(( i=${dirs[@]} ;i>0 ;i-- ))
do
echo "I am lesser"
done
This should “approx” do it.
The script doesnt work but it’s base idea is read a path recursively, and store as a array.
and just print, and print recursively.
I wont give you the actual solution this is what google is for, but it’ll nudge you in the right direction.
Not trying to get directories that are under the starting path.
Trying to set facls on a specific dir and then going back up the tree … set a facl for g+x so they can cd into the dir below.
I got it figured out… post the script later… if anyone cares
I needed to set a write FACL on just those two… but for the other group/user to get into either of those dirs they need ‘x’ permission on the dirs leading into those two specific dirs.
@Eden@Lauritzen
Sorry I was so bad in the OP trying to explain what I needed.
I really appreciate attempt to help me.
I was rushing when I made the OP trying to get some help.