Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
add tarfile to another
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
glurps
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 292

PostPosted: Sat Nov 05, 2005 3:01 pm    Post subject: add tarfile to another Reply with quote

how can i add the content of a tar file to another (in one single step)?

i have tried something like:

Code:
tar -xv tar1.tar | tar -rvf tar2.tar
Back to top
View user's profile Send private message
s3ntinel
n00b
n00b


Joined: 04 Apr 2005
Posts: 64

PostPosted: Sat Nov 05, 2005 11:52 pm    Post subject: Reply with quote

cp tar1.tar tar2.tar ?
Back to top
View user's profile Send private message
glurps
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 292

PostPosted: Sun Nov 06, 2005 11:39 am    Post subject: Reply with quote

hm yes, thats what i currently do (actually mv saves me from deleting).

i can live with that for now its just not so beautiful.

i have the same problem with sed. it seams its not possible (which makes sence, since its a stream editor) to edit a file in place.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Sun Nov 06, 2005 6:27 pm    Post subject: Reply with quote

glurps wrote:
i have the same problem with sed. it seams its not possible (which makes sence, since its a stream editor) to edit a file in place.
Code:
sed -i
;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum