How to move files to existing .tgz file?

Hi,

I have already created the tar files. which consist of some log files and Audit.csv

plz see the below code for that

================================================ 
tar -Pczf ARCH/${arc_date}.tgz $LOG/*.log $REYE/CEP/FiAdapter/Audit.${arc_date}.csv 
 
=================================================
 

now i want to move(add) some sal.csv drf.log files to existing ${arc_date}.tgz .
can anybody help me how is it possible?

Thanks in advance...

Regards,
Priyanka

use -r option

---------- Post updated at 01:37 PM ---------- Previous update was at 01:28 PM ----------

as it is compressed, you can use the below commands

 
gzip -dc ARCH/${arc_date}.tgz | tar -r $LOG/*.log $REYE/CEP/FiAdapter/Audit.${arc_date}.csv | gzip > archive_new.tar.gz
 
gunzip your-tar-file
tar rf your-tar-file file1 file2
gzip your-tar-file

Hi,

in below code ARCH folder contains alredy *.log and Audit.date.csv

======================================

tar -Pczf ARCH/${arc_date}.tgz $LOG/*.log $REYE/CEP/FiAdapter/Audit.${arc_date}.csv 

======================================

i want to add new files in to existing tar file eg: sal.csv drf.log files

how to do that??????????

@itkamaraj
the code given by u is same like my code. i need the command for adding new files in to existing tar file

You use the -r option to append files to an archive.