Skip to main content

Thread: Copy, skip files


how go copying files directory, yet skip files exist in directory, , remove files in directory.

example:
code:
$ls /dir1 img001.jpg img002.jpg img003.jpg $ls /dir2 img001.jpg img002.jpg
now copy dir1 dir2, contents of dir2 be:
code:
$ls /dir2 img003.jpg
this example, how go doing this?

would work?
code:
rsync --exclude '/`ls /dir2`'


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Copy, skip files


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support