Can GNU tar add many files to an archive, deleting each one as it is added?
This is useful when there is not enough disk space to hold both the entire tar archive and th
For non GNU tar, you can use "-u" to proccess file per file in a loop
tar -cf archive.tar afile for myfile in dir/*.ext do tar -uf archive.tar $myfile && rm $myfile || echo "error tar -uf archive.tar $myfile" done