bash – for loop through multiple directories and their files
I have 5 directories in the same path my_path/: my_path/1951 my_path/1952 my_path/1953 my_path/1954 my_path/1955 Each directory contains a different number of netcdf files ending in .nc. And I need to perform a CDO command by looping in each directory and files. The command below applies only to the first directory and files my_path/1951/*.nc: for i… Read More bash – for loop through multiple directories and their files