How to strip path while archiving with TAR [closed]?

In your "Extraction phase" you can use the strip-components flag like tar xvf tarname. Tar --strip-components=n which will remove the first n leading components of the file name. Although if you have different file-path-components this will not work for all cases.

If you want to do it while archiving, only one thing comes to mind, and I will share INPUT: list of files + full paths 1) for each line, split the path out of the filename 2) execute cd to that path and tar on that filename 3) repeat for each line.

Thanks. I'm aware of strip-components. However still prefer stripping while archiving.

– neversaint Nov 7 at 23:06.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions