I have files on my unix boxes that users have created with spaces.
Example: /tmp/project plan
ls -l "/tmp/project plan" works fine.
$/tmp>ls -l "/tmp/project plan"
-rw-r--r-- 1 root other 0 Jan 31 12:32 /tmp/project plan
I created a file called test and put just the line /tmp/project plan in it.
$/tmp>cat test
/tmp/project plan
$/tmp>
$/tmp>for i in $(cat test) do ls -l "$i" done
/tmp/project: No such file or directory
plan: No such file or directory
I have tried to quote this string in and outside of the file everyway possible and I cannot get this for loop to see the spaced file. Any help would be great.
-x96