16.22 Comparing Two Directory Trees with dircmpYou have an original directory. You copy the files in it to another directory, edit some of them, and add a few others. Later, you want to know the differences between the two directories. If your system's diff ( 28.1 ) has a -r (recursive) option, you can use that. System V has dircmp . The output of dircmp is formatted with pr ( 43.7 ) ; you get 66-line-long pages with headings:
%
In the The dircmp -s option stops the "identical file" messages. Use -d to run diff on files that are different; dircmp prints a new page for each diff it runs:
% The designers assumed you'd want to send the output to a printer. I usually read it on my screen with the less ( 25.4 ) pager and its -s option, which squeezes out the multiple blank lines. If you don't have less or more -s , try piping the output through cat -s ( 25.10 ) or a sed filter ( 34.18 ) . - |
|