Loop over files in a directory that contain spaces
#!/bin/bash
ls | while read file; do
echo $file;
done
ls | while read file; do
echo $file;
done
References
[Click to add or edit comments])
Please prepend comments below including a date
Please prepend comments below including a date