Shell script to zip files from input file?
by Donny Bahama from LinuxQuestions.org on (#5FNPG)
I'm trying to write a single line shell script to backup my browser profile using zip. I don't want to backup the whole thing (way too many cache files, and other non-essential stuff) - I just want the bare essentials. So I created a text file "profile_files" and populated it with all the file and directory names I want to backup. But several of these files and directories have spaces in the name. I tried wrapping each line in double quotes. That didn't work. I tried escaping the space with a preceding "" and when that didn't work I tried a back-tick instead of a back slash. No matter what I do, it skips over any file or subdirectory that has a space in the name.

