#!/bin/bash

for spdir in DU{01..10}; do
    # Preview files to delete
    echo $spdir

    for yrdir in ${spdir}/*/ECMWF/
        do
            if [ -d "$yrdir" ]; then
                echo "REMOVING directory"
                # Add your commands here
                find "$yrdir" -type f -name "*mineral_DUST*" -exec rm -v {} \;
            fi
            find "$yrdir" -type f -name "AGESPECTRUM_*.gif" -exec rm -v {} \; 
            find "$yrdir" -type f -name "agespectrum_*.dat" -exec rm -v {} \; 
            find "$yrdir" -type f -name "continentspectrum_*.dat" -exec rm -v {} \; 
            find "$yrdir" -type f -name "CONTINENTS_*.gif" -exec rm -v {} \; 
        done

    
done

