Sys V does not have a recursive copy cmd...

Sven L Eriksson sven-e at obelix.UUCP
Mon Jan 5 02:47:04 AEST 1987


In article <1964 at ptsfa.UUCP> jmc at ptsfa.UUCP (Jerry Carlin) writes:
>In article <1269 at cadovax.UUCP> mitchell at cadovax.UUCP (Mitchell Lerner) writes:
>>
>>... System V does not have a cp that does recursive copies...
>
>Try "find . -print|cpio -pduvm /foo/bar/...".
>
Another way to do this copy is to use tar. (Tape file ARchiver)

	tar cf - . | (cd todir ; tar xf - )

If you use this command links between files in the tree will be kept.
Otherwise it will work exactly as the find|cpio version.

Wich version is fastest? 

-- 

	Sven L Eriksson
	University of Linkoping
	Sweden

UUCP:	{decvax!mcvax,seismo}!enea!liuida!obelix!sven-e
ARPA:	sven-e at obelix.ida.liu.se



More information about the Comp.unix.questions mailing list