[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: question re tar



On 19/09/2022 02:37, jr wrote:

when I saw the links and started investigating, I tried cat for the names, ie
   $ tar -cvWf $arcname $(cat $fnames)

adding one or two file names on the command line works as expected,
supplying names from list and or file produces those links.

It seems some files are present multiple times in your list.

echo text >file.txt
tar cvWf test.tar file.txt file.txt
tar tvf test.tar

-rw-rw-r-- user/user   5 2022-09-20 17:43 file.txt
hrw-rw-r-- user/user   0 2022-09-20 17:43 file.txt link to file.txt


Reply to: