On 2/1/23 11:24, Patrick Dupre wrote:
To create a tar file, I used to create a list and to make tar -cvzf arch.tgz $list
However, if there are file names with a space, this space is interpreted as file name separator.
How can I fix this, either when I tar, or when I create the list?
You aren't providing enough information for a good answer.
How are you creating the list? What is the format of the data in that variable? Generally, it's not a good idea to store a lot of data in an environment variable, so how many files are involved?