Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!uunet!comp.vuw.ac.nz!am.dsir.govt.nz!dsiramd!marcamd!mercury!fivegl!hugh From: hugh@fivegl.co.nz (Hugh Grierson) Newsgroups: comp.unix.internals Subject: Funky cpio options (Was: Re: more uses for mode 000 (will be: cat -v considered harmful)) Keywords: tar cpio funky options svr4 Message-ID: <1991Feb19.113635.19996@fivegl.co.nz> Date: 19 Feb 91 11:36:35 GMT References: <1991Feb10.221410.2345@athena.mit.edu> <1991Feb12.043341.29652@athena.mit.edu> Reply-To: hugh@fivegl.co.nz (Hugh Grierson) Organization: 5GL International Ltd, Auckland, New Zealand Lines: 35 In article <1991Feb12.043341.29652@athena.mit.edu> scs@adam.mit.edu writes: >In article clark@cme.nist.gov (Steve Clark) writes: >>cd $HOME >>echo ./subdir/hugedir | tar cX - . >>Is this not portable? ... >This will probably spark a big "cat -v considered harmful" >flamefest, but I'll opine that adding this tar X option wasn't >very worthwhile. ... >I don't know how widespread -T is (or that third option I can't >remember). I see that BSD tar has neither -T nor -X. [apologies if someone else has mentioned this - the propogation delay to this corner of the net is very long indeed] The SVR4 cpio supports tar format. (and does it automatically on reads) find . -my -favourite -find -options | cpio -ov -Htar > dot.tar To test it yourself... Try: find . -print | cpio -o -Htar | tar -tvf - or: tar -cf - | cpio -itv [btw: I recall seeing a tar somewhere else using -F for the file-list file, (and of course -F - for stdin).] -- Hugh Grierson hugh@fivegl.co.nz | Perfection is attained not when there is 5GL International Ltd, | no more that can be added, but when there Auckland, New Zealand | is no more that can be taken away. Brought to you by Super Global Mega Corp .com