Lesson 3 of 12 · The language in depth
Robust loops: read without losing anything, odd names, subshells, waits and retries
Objective
Write loops that behave correctly on real data: files without a final newline, file names with spaces or newlines, commands that "eat" the loop's input, counters that drop back to zero for no reason, services that take time to start.
This lesson is part of the full course
Unlock Professional Bash scripting: automating Linux administration to read every lesson, do the exercises, access the simulations and earn your certificate.
Already enrolled? Log in.