Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

verify large directory after copy files

###
### Replace /path/to/original with the path of the original directory you copied.
### Replace /path/to/destination with the path of the destination directory you copied to.
### Replace <first-common-ancestor> with the common ancestor directory between both. Example: you are copying from /media/foo/bar to /media/test/dst/, so that dst, after the copy operation is done, has the directory bar. The first common ancestor is bar here; because all files under bar will have the same relative path.
###

find /path/to/original -type f -exec bash -c 'diff -rq --no-dereference "$@" "/path/to/destination/$(sed -r "s/^.*(<first-common-ancestor>.*)$/1/g" <<<"$@")"' bash {} ;
Comment

PREVIOUS NEXT
Code Example
Shell :: grep command 
Shell :: Install docker EE without internet 
Shell :: how to permantely install library in collab 
Shell :: evans cycles womens gravel bikes 
Shell :: error while installing DKphotogallery in xcode 
Shell :: i wrongly deleted code , can i retrieve through git command 
Shell :: gh_token environment variable powershell 
Shell :: bash mail subject variable 
Shell :: uepic games github 
Shell :: router dom react 
Php :: symfony schema update 
Php :: laravel clear route cache 
Php :: echo pre print_r 
Php :: var_dump smarty 
Php :: php date plus days 
Php :: brew remove php 
Php :: php only my ip 
Php :: php get last modified date of file 
Php :: extensions for laravel command ubuntu 20.04 
Php :: mac php ini file path 
Php :: laravel asset storage not working 
Php :: get id user login laravel 
Php :: array to string separated by comma php 
Php :: php loop through start and end date 
Php :: php remove cookie 
Php :: check if valid url php 
Php :: laravel uppercase first letter 
Php :: clear log file laravel command 
Php :: enie letter validation laravel regex 
Php :: check image is available on server php 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =