[HacktionLab] how to copy directory & file structure & names without actually copying the actual data? [off topic]

justsomename at tormail.org justsomename at tormail.org
Thu Jun 6 17:09:04 UTC 2013


Sorry, that was silly, ignore the last one.

Look up the options for rsync, i think that will give you what you want.

> Try this:
> $mkdir /tmp/test
> $cd /tmp/test
> $for i in `find /<full path of directory you want a copy of>/`; do  mkdir
> -p /tmp/test$i; done;
>
> Though i think that's probably a silly way to do this, as a text file
> using
> $find SOME_DIRECTORY > /tmp/listing 2>&1
> will give you an index anyway.
>
>> On Thu, Jun 06, 2013 at 04:53:20PM +0100, Marcus Valentine wrote:
>>> Recursive directory listing?
>>>
>>> ls -lR
>>>
>>
>> `find` with no arguments
>>
>> _______________________________________________
>> HacktionLab mailing list
>> HacktionLab at lists.aktivix.org
>> https://lists.aktivix.org/mailman/listinfo/hacktionlab
>>
>





More information about the HacktionLab mailing list