Article 5FNPG Shell script to zip files from input file?

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.latest?d=yIl2AUoC8zA latest?i=4jo2RV5_IMs:tGuwWzQqyAc:F7zBnMy latest?i=4jo2RV5_IMs:tGuwWzQqyAc:V_sGLiP latest?d=qj6IDK7rITs latest?i=4jo2RV5_IMs:tGuwWzQqyAc:gIN9vFw4jo2RV5_IMs
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments