How did I overwrite a file to in "tar" file.<br>
<br>
For example I have file "backup.tar" in my home directory, which contains two file "x.sh" and "y.sh"<br>
<br>
I made some changes to one of the file "x.sh" and want to update the "backup.tar"<br>
<br>
I use tar -uvf, but this appends at the end of the tar file, but what I want is replace the file.<br>
<br>
The only way, I know of right now is, delete the file by issuing the following command<br>
<br>
tar --delete --file=<span class="SpellE">backup.tar</span> x.sh<br>
<br>
and then adding the file again using <br>
<br>
<span class="GramE">tar</span> -<span class="SpellE">uvf</span> <span class="SpellE">backup.tar x.sh<br>
<br>
Is there a better way of doing this, on a single command.<br>
<br>
Thanks in Advance<br>
</span><br>