As output, checksums and filenames will be printed.
Results will be shown in columns. Only different files and files in one directory that is not in the other will be shown.
Recursively compares files in directories DIR and OLD_FILES using dwdiff Word-by-word comparison with dwdiff results in words unique to NEW file versions in the DIR directory tree shown enclosed in [- SQUARE BRACKETS -] and words unique to OLD file versions in the OLD_FILES directory tree shown enclosed in {+ CURLY BRACES +} Note: does not detect files unique to the OLD_FILES directory tree. Show Sample Output
This commands will make it easier to select only common items between two files being compared. If your lines start with things other than lowercase a-z, adjust this Regex appropriately. Number of lines in the output has been set to no more than 10000, and should be adjusted as needed.
--dry-run will only show you which files would be otherwise synced with rsync. -z is for compressio -v vervose -a "as is" - permissions, ownership etc.
references: http://stackoverflow.com/questions/8818789/git-diff-word-diff-with-oneline-files use aha to output html: http://stackoverflow.com/a/20861333/199217
This command will open up the two files in FileMerge on OS X. You can also compare two directories.
opendiff directory1 directory2
NOTE: FileMerge is a part of the OS X Developer Tools, available on the install disc.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: