Timeline for Bash: Using 'if' and 'find' together to check folders for files
Current License: CC BY-SA 4.0
        4 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 19, 2021 at 15:58 | comment | added | Chris Davies | It's more about symlinks confusing the shell, or handling the situation where the original directory gets renamed while you're in a subdirectory. The cd "$originalDir"command at the end of a loop can fail in these situations. | |
| May 19, 2021 at 15:46 | vote | accept | Jake Larkin | ||
| May 19, 2021 at 15:46 | comment | added | Jake Larkin | Immaculate, thank you so much for your help roaima! Works perfectly :) Is cd considered bad form inside 'for' loops? Or is it just more efficient to use subshells etc.? | |
| May 19, 2021 at 15:38 | history | answered | Chris Davies | CC BY-SA 4.0 |