The glob pattern “$logdir”/*.log on line 16 controls which f…
The glob pattern “$logdir”/*.log on line 16 controls which files the loop iterates over. Given a ./logs directory containing exactly three files — app.log, db.log, and notes.txt — how many times does the loop body execute?
Read Details