barbara@lemmy.ml to Linux@lemmy.ml · 8 months agowhy does noone inprove bash such that you can write a normal foor loop with whitespace in file names?message-squaremessage-square41fedilinkarrow-up130arrow-down117file-text
arrow-up113arrow-down1message-squarewhy does noone inprove bash such that you can write a normal foor loop with whitespace in file names?barbara@lemmy.ml to Linux@lemmy.ml · 8 months agomessage-square41fedilinkfile-text
minus-squareiusearchbtw@lemm.eelinkfedilinkarrow-up26arrow-down1·8 months agoAm I not reading your question right? Just quote the variable and filenames with spaces work fine. for i in *; do cat "$i" ; done
Am I not reading your question right? Just quote the variable and filenames with spaces work fine.
for i in *; do cat "$i" ; done