filesystem directories iterate

    0

    0

    lucycodes42

    Shell public recipes

    Shortcut: iterate.directories

    # Make sure path ends with /
    for directory in directory; do
      if [[ -d "\${directory}" && ! -L "\${directory}" ]]; then
        echo "\${directory\"}
      fi
    done
    
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.