how to add files to an existing tar file - HP-UNIX


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to add files to an existing tar file - HP-UNIX
# 1  
Old 06-16-2006
how to add files to an existing tar file - HP-UNIX

Hello,

What is the command to add files to an existing tar file.

Thanks,
# 2  
Old 06-16-2006
doing 'man tar' should give you 'hints'
# 3  
Old 06-16-2006
Quote:
Originally Posted by vgersh99
doing 'man tar' should give you 'hints'
vgersh99: Why did you have to reply to this post? You could have just spend the sametime writing this useless answer buy typing the tar command options to add a file; if you really know!
# 4  
Old 06-16-2006
....'cause the next time you have a similar question to ask hopefully you'd spend some of your 'valuable' time looking into the 'man' pages first before posting it here.

Is that a somewhat clearER?
# 5  
Old 06-16-2006
Quote:
Originally Posted by Nomaad
Hello,

What is the command to add files to an existing tar file.

Thanks,
For all of you who may have the same question and couldn't figure our why you can't add a file to an existing tar file; Try this:

when creating the tar file use this command:
tar -cvbf 64 tarfile fileyouwant2add2tarfile

When adding to the above tar file use this command:
tar -rvbf 64 tarfile fileyouwant2add2tarfile

The broblem I had was realted to the block size and in may case the maximum was 64. Make sure to maintain the same sequence of arguments:

if you use the option as [bf], then arguments will need to be like [64 tarfile]
if you use the option as [fb], then arguments will need to be like [tarfile 64]
# 6  
Old 11-06-2008
hi
can you please tell me the relevance of that 64 in the command
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX command to check if file name ends with .tar OR if the file is a tar file

Hello Team, Would you please help me with a UNIX command that would check if file is a tar file. if we dont have that , can you help me with UNIX command that would check if file ends with .tar Thanks in advance. (10 Replies)
Discussion started by: sanjaydubey2006
10 Replies

2. Solaris

Command to remove existing files in the tar files in Solaris 10

Hi, I am using solaris 10 OS.Please help me out with the commands needed in below two scenarios. 1)How to delete the existing files in the tar file. suppose i have a main tarfile named application.tar and it contains a file called ingres.tar. what is the command to remove ingres.tar... (2 Replies)
Discussion started by: muraliinfy04
2 Replies

3. Shell Programming and Scripting

Append files to a existing tar file.

Hi all, I want to check whether tar file exists in the directory or not. If tar file exists in the directory then I want to append the files to it. I am using the below command to tar files if the file does not exist. tar zcvf <tar file name> <Files to append> However, if want to... (4 Replies)
Discussion started by: Nagaraja Akkiva
4 Replies

4. Shell Programming and Scripting

Adding file to an existing tar

Hi Friends, I want to know the command to add a new file in a existing tar file. For Ex: I have a tar file file1.tar with the contents one.txt two.txt three.txt Now I need to add file four.txt to this existing tar file, how can I do it? Thanks in advance (4 Replies)
Discussion started by: mr_manii
4 Replies

5. Solaris

Add existing user into an existing group

Pre: no gpasswd/adduser there is just usermod can be used, also there is no -a option for usermod. How should I add a user into a group? (4 Replies)
Discussion started by: a2156z
4 Replies

6. Shell Programming and Scripting

Add directory to TAR file whitout files.

Hi, What I'm trying to do is rather easy to explain, but I don't know if it's possible. The main idea is that I have directories which I want to add to a TAR file, but for some of them I don't want to include the files in the directory. I just want to add the path to the TAR file as if the... (5 Replies)
Discussion started by: wisobe
5 Replies

7. Shell Programming and Scripting

how to add a new column in an existing file

Hi guys, Please help me if u have some solution. I have a file with three columns separated by ':' - INPUT_FILE C416722_2 : calin Dirigent : Dirigent AC4174_6 : Jac : cal_co TC4260_5 : [no : lin kite BC426302_1 : [no : calin Dirigent lin JC426540_3 : lin Pymo_bin : calin TC428_3 : no7... (4 Replies)
Discussion started by: sam_2921
4 Replies

8. UNIX for Advanced & Expert Users

How to create a Tar of multiple Files in Unix and FTP the tar to Windows.

Hi, On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files. a) /usr/users/oracle/bin b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies

9. Shell Programming and Scripting

Need to add a line of data to already existing file in Unix..

Hello.. I have a text file with 100 lines of data. I need to add 1 line of data to that already existing file at the first line( beginning of the file) , so that the already existing 100 lines will start from 2 nd line.Now the file will have 101 lines of data. Help me on how to add the line... (4 Replies)
Discussion started by: charan81
4 Replies

10. UNIX for Dummies Questions & Answers

delete a file from an existing Solaris tar

How can I delete a file from an existing Solaris tar file ? (not gtar) (2 Replies)
Discussion started by: avnerht
2 Replies
Login or Register to Ask a Question