Vdubjunkie Posted January 25, 2003 Report Share Posted January 25, 2003 I know.. Im on a marathon tonight. What I'm looking for is a way to compare two files with a fallout report. I have done a ls > dir.txt to several directories, and would like to figure out exactly what one dir has that the other does not. I don't care about also vice versa, just one dir to the other. I've looked through some of the compare type commands and just don't seem to be able to make sense of any of them for this purpose. as always.. help is greatly appreciated! Quote Link to comment Share on other sites More sharing options...
Guest G3ck0G33k Posted January 25, 2003 Report Share Posted January 25, 2003 I hope I understood what you wanted to to... You could use either TkDiff or Kompare; both are found in Applications > Development > Tools. Open two "dir.txt" files (e.g. from /home/user/crap/dir.txt and /home/user/misery/dir.txt) and see how they differ. Quote Link to comment Share on other sites More sharing options...
aru Posted January 25, 2003 Report Share Posted January 25, 2003 man diff diff can also compare directories directly w/o the need of appending their contents to a file. diff dir1/ dir2/ is that what you wanted? Quote Link to comment Share on other sites More sharing options...
Vdubjunkie Posted January 25, 2003 Author Report Share Posted January 25, 2003 the command line is my preference, so diff may be my ticket.. however, the dir/ directly may be tricky. It is from two machines on different networks. In fact one is a doze box. I'll try plugging away with man diff some more and see if I can't figure it out. Thanks. Quote Link to comment Share on other sites More sharing options...
aru Posted January 25, 2003 Report Share Posted January 25, 2003 I see, then if the next step is to update someting after the comparation, then you can avoid it at all and use rsync. Btw, search for a clever script from theYinYeti here that does it using plain unix tools. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.