barbara@lemmy.ml to Linux@lemmy.ml · 6 months agowhy does noone inprove bash such that you can write a normal foor loop with whitespace in file names?message-squaremessage-square40fedilinkarrow-up10arrow-down10file-text
arrow-up10arrow-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 · 6 months agomessage-square40fedilinkfile-text
minus-squareashaman2007@lemm.eelinkfedilinkarrow-up0·6 months agoYou can already write a for loop that handles whitespace in file names, just use quotes around the file name variable: https://www.howtogeek.com/850124/spaces-in-filenames-on-linux/#how-to-use-filenames-with-spaces-in-bash-scripts
You can already write a for loop that handles whitespace in file names, just use quotes around the file name variable:
https://www.howtogeek.com/850124/spaces-in-filenames-on-linux/#how-to-use-filenames-with-spaces-in-bash-scripts