I am on a Windows machine. However, I installed Cygwin and updated my environmental variable path which allows me to run Linux commands through a Windows terminal.
I would like to perform the following command:
wc -l * > total
in many folders. My setup is this:
Parent Folder has 24 subfolders each named PKA1, PKA2, etc., up to PKA24
I want to go into each subfolder. But within each subfolder I need to go further. I need to go down three more levels (only one subfolder in each directory at this point), but the path looks like:
Then in each subfolder at this depth, there are 4 folders:
O1 O3 Si3 Si5
I would like to go into each one and perform my command. Is there a quick way to do this?