Ravi Sir's Cards › AWS
Loop breaks on spaces in names?
This interview card answers: Loop breaks on spaces in names? Do not loop over ls output. Use a glob and quote "$f". Safe.
Read card text
What this card says
What it is
Do not loop over ls output.
Why it matters
Use a glob and quote "$f".
How / example
Safe.
for f in ./*; do