Go Back   The macosxhints Forums > OS X Help Requests > UNIX - Newcomers



Reply
 
Thread Tools Rate Thread Display Modes
Old 06-03-2002, 05:31 PM   #1
scubawd
Prospect
 
Join Date: Apr 2002
Location: San Diego, CA
Posts: 24
I want to print (a hard copy) of the online manual

I would like to print out and put in a binder the online manual of Unix commands. Unfortunately, I haven't been able to find anything--in the books I have--about if this is possible to do and how I would do it.

I am hoping there is a way to print the whole manual at one time, rather than bringing up each command in terminal and then printing that out.

(I do know there are 8 sections to the manual, so when I say print it all out at once, I know I will probably be limited to printing each section separately. I just don't want to print each command separately.)

P.S. I have already run CATMAN on each section, to format the manual pages.
__________________
Dr. James K. Butler, CEO & President
Scuba Web Design

- Web Site Design
- Graphic Design
- Multimedia Production
- 3D & Animation
- Macintosh Consultation & Education

< E-mail: mailto:jbutler3@san.rr.com >
< Web Site: http://www.scubawebdesign.com > | < http://home.san.rr.com/scubawd >
< List Owner: mailto:adobe-applications-owner@yahoogroups.com >
scubawd is offline   Reply With Quote
Old 06-03-2002, 08:01 PM   #2
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
you might want to rethink that notion...
Code:
% echo $MANPATH | sed 's/:/ /g' | xargs du -chs
5.9M    /sw/share/man
0       /sw/man
20k     /Users/merv/man
1.1M    /usr/local/man
328k    /usr/local/share/man
25M     /usr/share/man
6.5M    /usr/X11R6/man
39M     total

% man xargs
... copy one page to clipboard, feed to wc, char count is 2,684

% zclc 39*1024*1024/2684
15236.4
so, you'll have >15,000 logical pages to print. trees?! timber! binder?! how about "wall o' binders" ?

besides, i think you'll only want commands from section 1 and 8, and then not all of them, and then, you'll not like nor use the results. if you do persue this, be sure to squish multiple blank lines and format to use a page efficiently. not sure how cat pages are formatted, but man pages are very inefficient on the standard 8/11 page.

get comfortable with several shell windows and use one for examining man pages while you experiment with the commands in another window.

regarding the sections:

# Specific section/directory combinations.
1 - commands
2 - syscalls
3 - libc
4 - special
5 - files
6 - games
7 - miscellaneous
8 - admin
9 - kernel

unless you're a programmer, sections 2, 3, some of 4, 5, 7, and 9 are going to cause apoplexy.
mervTormel is offline   Reply With Quote
Old 06-03-2002, 08:06 PM   #3
iroot
Prospect
 
Join Date: May 2002
Posts: 19
There are web sites (search "unix commands") that have html and/or .pdf files of the man pages.

BTW, here's a command to list commands in each section:

man -k "-" | grep "n"

where n is the section; you want to look at 1, 6, and 8 for sure, but try them all.

also look (just ls the directory) in /bin, /sbin, usr/bin, and usr/sbin for some commands that don't have man pages.
iroot is offline   Reply With Quote
Old 06-04-2002, 01:40 AM   #4
vonleigh
All Star
 
Join Date: Jan 2002
Posts: 579
Hello,

Interesting discovery, tried the command above with grep "(6)" and only one thing came up. Tried man games and this is what came up:

Code:
DESCRIPTION
       Terminal-based  games  and  their  manual  pages  are  not
       included in the Mac OS X release.  In lieu of  these,  the
       /Applications/GrabBag  directory  contains a number of Mac
       OS X applications you might want to try.

DEMONSTRATION PROGRAMS
       The demos in /Applications/GrabBag are  designed  to  give
       aspiring  programmers  a taste of what's possible with Mac
       OS X.  If you're interested in science, music, art, signal
       processing,  games, animation, timing, optics, PostScript,
       chaos, electronics, chess, and  so  on,  you  should  find
       something compelling in this collection of demos.

       Note  that  these  demo  programs  are not generally main-
       tained, and usually do not come with sources, although the
       source  code  for some demos is available in the directory
       /Developer/Examples.
I guess they were something of the early beta's or something like that.


Vonleigh
vonleigh is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:21 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.