Hi guys,
Having a brain dead moment, could some explain the following for me please.
I use the following quite often ...
tar cf - . | (cd todir; tar xfp -)
.. and suddenly realised that whilst I understand the first bit (tar cf - .) as "set the tar file" to standard out, I can't quite get my head round the "meaning" of the - in the seconf path, yes, it cds to "todir" and untars the standard out (which seems to now be a tar file".
Is it really that simple ??
Also, (yes I know "RTFM", but I cannot find anywhere a man page (or web page) that explains - as being stand out, is it only a tar thing.
Many thanks,
Martin
Having a brain dead moment, could some explain the following for me please.
I use the following quite often ...
tar cf - . | (cd todir; tar xfp -)
.. and suddenly realised that whilst I understand the first bit (tar cf - .) as "set the tar file" to standard out, I can't quite get my head round the "meaning" of the - in the seconf path, yes, it cds to "todir" and untars the standard out (which seems to now be a tar file".
Is it really that simple ??
Also, (yes I know "RTFM", but I cannot find anywhere a man page (or web page) that explains - as being stand out, is it only a tar thing.
Many thanks,
Martin