Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using tar to copy/extract in one step

Status
Not open for further replies.

pneely

MIS
Apr 3, 2001
23
US
I need to use tar to copy files from one directory and extract them into another directory in one step. I think its done something like this...

tar cvf - . | ????

Any ideas ?

Thanks,
P@
 
I found the answer...

cd sourcedir ; tar cf - . | (cd destinationdir ; tar xf -)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top