Search This Blog

26 February, 2012

diff, excluding files and directories

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

diff -Nru  -x 'config.txt' -x 'log.txt' -x 'logs' -x 'error_log' -x 'uploads' <folder-old> <fodler-new>



No comments:

Post a Comment

tmux enabling mouse interaction

Add the below line to the ~/.tmux.conf setw -g mouse on save the file and exit from the tmux shell, you should be able to use your mouse to ...