file moving problems

Harald Becker ralda at gmx.de
Fri Feb 11 23:08:27 UTC 2011


 Hi!


>> Gang,
>>
>>     I've been dealing with a problem of trying to move/copy some files 
>> and directories from one location to another while trying to exclude one 
>> or more of them.  For instance, let's say that I have:
>>
>> a.txt
>> b.txt
>> c/ *contains other files*
>> d/ *contains other files*
>> e.txt
>>
>> I can do a "cp -dpR !(b.txt) d" within bash using the full cp command to 
>> move everything except b.txt into the d directory.
> This doesn't work for me even in bash:
Me too, never heard about that feature. Consider using rsync for that
purpose. rsync has options to exclude files/directories from recursive
copies.

--
Harald


More information about the busybox mailing list