I need to write a script which sorts through folders and files and performs file management (e.g. rm) on certain files. I wrote the names to a file in order to read them in one at a time. Everything works fine until I run across files with spaces in them (which are generated from a Macintosh environment).
How can I read back the file names that contain spaces and do operations on these files without the ksh seeing to file names instead of one name with a space in it?