For excluding files and directories while using diff, we can pass the exclude pattern in the command line.
Say for you u want to exclude the below file and folders
config.txt
log.txt
logs -> Folder/Directory
error_log
uploads -> Folder/Directory
Say for you u want to exclude the below file and folders
config.txt
log.txt
logs -> Folder/Directory
error_log
uploads -> Folder/Directory
diff -Nru -x 'config.txt' -x 'log.txt' -x 'logs' -x 'error_log' -x 'uploads' <folder-old> <fodler-new>
No comments:
Post a Comment