why does noone inprove bash such that you can write a normal foor loop with whitespace in file names?
why does noone inprove bash such that you can write a normal foor loop with whitespace in file names?
I know that there are ten different alternatives. Why don't we simply improve the basic stuff?
You're viewing a single thread.
All Comments
40 comments
Am I not reading your question right? Just quote the variable and filenames with spaces work fine.
for i in *; do cat "$i" ; done
25 0 Reply
40 comments
Scroll to top