I have a file, names(i) where each entry is 'first last' name. 'cat names' is fine. But in a shell script
>for file in $(cat names)
> do
> echo $file
> done
the first and last name appear on 2 lines. I have tried escaping and quoting the space but to no avail. The names are to be used in renaming jpg files and will be used to print labels with picture and name. What must I do?