bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: cp improvement


From: MWolynko
Subject: RE: cp improvement
Date: Fri, 4 Apr 2003 09:27:49 +0200

>>> I think I have a good idea to improve the functionality of cp
command.  
>>> Sometimes I and my colleagues ( UNIX admins ) have to copy of 
>>> directory structure.

>Just the directory structure?  Not the files in it?

Thats right. Just the directory structure.

>> No, since the GNU GPL prohibits you from doing any changes, looking
at 
>> the source code, distributing those changes... Whoops, wrong world! 
>> Yes you can do those changes since it is Free Software.

>:-)

I've used GNU programs for years. Now I'd like to give something from
myself. When I wrote "May I?" I meant "I'd like to by a fileutils
developer. I'd like to halp you.". It's my first call and I don't know
you are closed group or not.

>'cp -a' is my best friend.  But if the OP wanted just the directories
then I think the find|awk was 
> pretty good.  But I think I can improve it using xargs.

>  find . -type d -print0 | (cd new_dir ; xargs -0i mkdir -p {})

Thanks. You are right. Now it looks better.

>I just can't see that being a very common activity.

I need this feature when I have to create copy of aplication environment
( for test, development ). It's pretty common activity for me. Now I can
find just this one example, but I think live will give much more.

/Marek




reply via email to

[Prev in Thread] Current Thread [Next in Thread]