Thread: Copy, skip files
how go copying files directory, yet skip files exist in directory, , remove files in directory.
example:
now copy dir1 dir2, contents of dir2 be:code:$ls /dir1 img001.jpg img002.jpg img003.jpg $ls /dir2 img001.jpg img002.jpg
this example, how go doing this?code:$ls /dir2 img003.jpg
would work?
code:rsync --exclude '/`ls /dir2`'
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Copy, skip files
Ubuntu
Comments
Post a Comment