Heads up: gtar gone from base system
sthaug at nethelp.no
sthaug at nethelp.no
Mon Mar 28 23:12:35 PST 2005
> > Brian missed a pair of parenthenis. The example should read:
> >
> > ( cd srcdir ; tar cf - . ) | ( cd destdir ; tar xpf - )
>
> All the first perens does is leave you sitting wherever you were before
> starting, whereas my example would have left you sitting in srcdir.
> It makes no functional difference in the tar/untar job itself.
>
> In truth, my example was from something I do all the time on SCO and is in
> sco's tar man page but it's such basic shell and tar usage that it works the
> same everywhere. I do it on Linux and FreeBSD too and I just verified on a
> 5.3 box just to make sure instead of relying on memory and common sense.
It's still in my fingers too, used it for many years. Lately I have
been using cp -pR for the same job.
Steinar Haug, Nethelp consulting, sthaug at nethelp.no
More information about the freebsd-current
mailing list