Hi,
I have tar filw which has multiple directories which contain files.
When i extract using tar -xf the directory structure also get extracted.
I require only files and not directory structures as there will be overhead of moving the files again.
So i searched here and got a solution but i'm not able to understand what its doing.I've read the man pages but not able to get.
The Solution is like this.
pax -r -f tartest.tar -s'/tartest\///'
Please guide me to understand what its doing and what
@chetan.c
What Operating System and version you have?
The long-term solution is to create your tar archives with relative paths.
When reading a tar archive with pax the simplest is to remove the leading solidus from the absolute filenames. Always practice your tar and pax commands with a small and expendable file before moving on to live data.