If I am trying to archive files in loop using tar command with --remove-files
option. If some exception occurs in mid of execution, will the --remove-files
option delete the current operating file or retain the original file ?
while read file;
do
tar -uf test.tar.gz --remove-files "$file"
done