r2201 - jhalfs/branches/0.2

M.Canales.es manuel at linuxfromscratch.org
Fri Nov 25 09:40:46 PST 2005

El Viernes, 25 de Noviembre de 2005 16:37, Jeremy Huntwork escribió:
> Jeremy Huntwork wrote:
> > --strip-components=NUMBER   strip NUMBER leading components from file
> >                              names
> --strip-components=1 seems to do what you meant with the --strip-path=1
> (ie, it removes the leading 'vim64' directory when untarring the
> vim-lang tarball inside the already unpacked vim-6.4 tarball.

Look like the switch name was changed in tar 1.5 :-/

tar --version
tar (GNU tar) 1.14

info tar

     Strip given NUMBER of leading components from file names before
     extraction. For example, if archive `archive.tar' contained
     `/some/file/name', then running

          tar --extract --file archive.tar --strip-path=2

     would extracted this file to file `name'.

Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.com
TLDP-ES:                           http://es.tldp.org

More information about the alfs-log mailing list