This post list bash commands and scripts I use the most.
Execute a command inside subfolders
function recursive_for_loop {
ls -1| until ! read f; do
if [ -d $f -a ! -h $f ];
then
cd -- "$f";
recursive_for_loop
echo "### Folder $f";
git status; # replace here your command
# use recursion to navigate the entire tree; git status;
cd ..;
fi;
done;
};
recursive_for_loop
Source: baeldung.com/linux/execute-command-directories
About me
I'm a Software Engineer with experience as Developer and DevOps. The technologies I have worked with are DotNet, Terraform and AWS. For the last one, I have the Developer Associate certification. I define myself as a challenge-seeker person and team player. I simply give it all to deliver high-quality solutions. On the other hand, I like to analyze and improve processes, promote productivity and document implementations (yes, I'm a developer that likes to document ๐งโ๐ป).
You can check my experience here.
Personal Blog - cangulo.github.io
GitHub - Carlos Angulo Mascarell - cangulo
LinkedIn - Carlos Angulo Mascarell
Twitter - @AnguloMascarell