You are not logged in.
I used a command-line program before that copied a directory including its sub-directories and files but it did not copy the contents of the files, just the names. Does anyone know what the name of the program might have been or a way to do this?
Last edited by anitac (2013-08-26 14:32:49)
Offline
Just the names? Do you mean it created new empty files with the same names, or did it create symlinks to the originals?
EDIT: what are you trying to accomplish with this?
Last edited by Trilby (2013-08-26 14:39:52)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
cp -a --atributes-only ...Offline
ls /dir > listing.txt
Offline
It created new empty files with the same names.
cp does it, thank you.
Last edited by anitac (2013-08-26 14:55:40)
Offline
cp -a --attributes-only ...
Fixed that for ya.
Anyway, thanks. I never would have thought to look to cp for this.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline