Execute command in all immediate subdirectories
Can you try using this simple loop which loops in all sub-directories at one level deep and execute commands on it, for d in ./*/ ; do (cd “$d” && ls -al); done (cmd1 && cmd2) opens a sub-shell to run the commands. Since it is a child shell, the parent shell (the shell from … Read more