Antwort: How to Copy Directory Structure w/o Copying Files

From: Peter Wuestefeld (Peter.Wuestefeld@SYSVA.DE)
Date: Mon Jul 21 2003 - 13:09:55 EDT


One possible way out of many:

cd /your_directory

find . -type d -print > tar_list

tar -cvf your_directory.tar -L tar_list

HTH,
Peter

Peter Wuestefeld M.A.

sysva GmbH - ein Unternehmen der SVA
Niederlassung Stuttgart
Wilhelm-Haas-Straße 6
70771 Leinfelden-Echterdingen

Büro: 0711 758595-40
Fax: 0711 758595-44
Mobil: 0151 12524406
SMTP: Peter.Wuestefeld@sysva.de

Somewhere found on the 'net:
=> Airconditioned. DO NOT open Windows. <=

                      Ranbir Singh
                      <Singh@XAVIER.EDU An: aix-l@Princeton.EDU
> Kopie:
                      Gesendet von: IBM Thema: How to Copy Directory Structure w/o Copying Files
                      AIX Discussion
                      List
                      <aix-l@Princeton.
                      EDU>

                      21.07.2003 18:37
                      Bitte antworten
                      an IBM AIX
                      Discussion List

I am trying to copy the entire substructure of a directory to another
directory. How can I do this without copying the actual files in those
subdirectories as well?

Thanks for your help,
RS

--------------------------------
"Colorless green ideas sleep furiously."
--------------------------------
Ranbir Singh
Information Systems and Services
O: 513.745.3889
E: singh@xavier.edu

Xavier University
3800 Victory Parkway
Cincinnati, Ohio 45207-7411



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:03 EDT