I was skimming the man bash on the Terminal last night till late. I think I remember seeing a command that will compare two things (files, directories...) and determine if they are exactly the same. If I did see that, now I can't find it. I copied the man bash (page by page, ack) to a Word file for easier searching. But it was late enough las night that I don't remember enough of the actual text to do a search. I tried a few things....
Two things:
Is there such a command and what is it?
Is there an easy way to transfer man bash to an external file, especially one that will preserve the various bold formatting which actually makes the one in Terminal easier to read than the Word doc I have now?
Thanks
hayne
02-21-2006, 10:26 PM
1) The 'diff' command will compare two files or (with the "-r" option) two folders. But I don't think that would have been mentioned in the 'bash' man page.
2) You can search in the man page in Terminal by typing a slash (/) and then the thing you want to search for. Read 'man man' for more info.
3) There have been a few articles on the main macosxhints site about ways of viewing man pages in a web browser or in dedicated utilities.
E.g. search for Bwana
avalon
02-21-2006, 10:55 PM
Thanks. Diff sounds exactly right and jogs the memory. But I in fact do not see it anywhere in the man bash.
So I wonder what else I ended up reading last night that mentioned it.
Oh well, wherever. Thanks again.
giskard22
02-22-2006, 12:05 PM
My preferred method for long man pages is to go to hmug.org, where they've put the current versions online as web pages.
avalon
02-22-2006, 12:49 PM
Cool, thanks. Great name too, humungous.org.