Hi!
1) I would like to extract the files from file.tar and change the path of the files. For instance, if in the tar file I have
/def/rr/toto/data/file1.dat
/def/rr/toto/data/file2.dat
/def/rr/toto/data/file3.dat
I want to get
/d/vc/tutu/data/file1.dat
/d/vc/tutu/data/file2.dat
/d/vc/tutu/data/file3.dat
Is this possible?
2)I would like to know how many files there are in an archive is tar -tvf file.tar | wc the best way to go?
Thanks!
1) I would like to extract the files from file.tar and change the path of the files. For instance, if in the tar file I have
/def/rr/toto/data/file1.dat
/def/rr/toto/data/file2.dat
/def/rr/toto/data/file3.dat
I want to get
/d/vc/tutu/data/file1.dat
/d/vc/tutu/data/file2.dat
/d/vc/tutu/data/file3.dat
Is this possible?
2)I would like to know how many files there are in an archive is tar -tvf file.tar | wc the best way to go?
Thanks!