Exiting a manual


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Exiting a manual
# 8  
Old 01-28-2009
Quote:
Originally Posted by cfajohnson
I've never know cutting (highlighting with the mouse) to capture control characters.

Got me there. Good one.

Like I said, it's mainly for navigation purposes, familiarity... etc...

( The control characters stay if you do something like:
man localtime > a
And then want to grab stuff that just happened to be highlighted. )


My 'mon' command also removes the page-headers and page-trailers,
so if the text you'd like to highlight happens to span on 2 pages,
you don't have to worry about that anymore.

Like in the localtime page part here:

Code:
     Declarations of all the functions and externals, and the  tm
     structure, are in the <time.h> header. The members of the tm
     structure are:

     int   tm_sec;    /* seconds after the minute - [0, 60] */
                      /* for leap seconds */
     int   tm_min;    /* minutes after the hour - [0, 59] */
     int   tm_hour;   /* hour since midnight - [0, 23] */
     int   tm_mday;   /* day of the month - [1, 31] */
     int   tm_mon;    /* months since January - [0, 11] */
     int   tm_year;   /* years since 1900 */
     int   tm_wday;   /* days since Sunday - [0, 6] */



SunOS 5.10          Last change: 27 May 2005                    2






Standard C Library Functions                            ctime(3C)



     int   tm_yday;   /* days since January 1 - [0, 365] */
     int   tm_isdst;  /* flag for alternate daylight savings time */


Last edited by quirkasaurus; 01-28-2009 at 02:09 PM.. Reason: meh...
# 9  
Old 01-28-2009
FYI, if you need your 'man' pages converted to Postscript (on Solaris):
Code:
#!/bin/ksh
# prepare a "man" page to be printed on the Postscript printer
# $1 - is "nroff"-ed "man" page - usually located on your MANPATH -
# [/usr/man/man1 man2 etc.....].
#
# The result of running this wrapper is a Postscript file placed under
# "/tmp" dirrectory with extention os ".ps". You can print this .ps
# on any Postscript printer from UNIX [if lp has been fonfigured]
# and/or transfer it to your NT print it from there.

TARGET_DIR="/tmp"
TARGET_PATH="${TARGET_DIR}/`basename ${1}`.ps"

troff -man ${1} | /usr/lib/lp/postscript/dpost > ${TARGET_PATH}

echo "\tYour converted postscript file is at ${TARGET_PATH}"

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

For loop exiting

Hi , I am processing some files using below shell script the problem for loop exit after processing some files even though it exist.After modifying file.txt and rerunning the script and its running .Any Advise for i in `cat /xx/file.txt |tr -s "," '\n' ` ; do echo $i... (3 Replies)
Discussion started by: mohan705
3 Replies

2. Shell Programming and Scripting

While Loop Exiting

We are trying to design a flow so that an ETL job shouldn't start until the previous job completes. The script we have written is while ; do sleep 2; done The loop however exits even when the process is actually running. Why could this be happening? (12 Replies)
Discussion started by: jerome_rajan
12 Replies

3. Solaris

Exiting signal 6

Hello all, I have a problem when installing Solaris 10 on Enterprise 450. I booted from dvd, then the installation was started. The error appeared after determining the installation method, F2-Standard, F?-Flash...... The error was Exiting signal 6. Please, need help. Thank you (4 Replies)
Discussion started by: Hardono
4 Replies

4. Shell Programming and Scripting

exiting from script

Hi, I am trying to exit the script from a function. I was in assumption that if we use exit ( inside or outside the function) it will exit from the script. alternatively, return will exit from that particular function. but in my case, exit is exiting from the function and not the script.... (8 Replies)
Discussion started by: shellwell
8 Replies

5. Shell Programming and Scripting

Exiting a script

I have a script abc.sh. Its contents are as follows: (7 Replies)
Discussion started by: lassimanji
7 Replies

6. Shell Programming and Scripting

No Manual Entry

Hi, While executing the following command i am getting output as command not found. iostat output: command not found Also, man iostat is displaying "NO Manual Entry" Why is it so? (5 Replies)
Discussion started by: salil2012
5 Replies

7. Shell Programming and Scripting

Need help with a manual task

I have an ASCII file that I receive on a monthly bases that is fixed length. I break the file into separate files based on a 5 character numerical sequence. I have 20 different sequences I have to find. the input file looks something like this xy-ins 2008yuthnrlsinrthsntwilgrha33260001... (4 Replies)
Discussion started by: jcalisi
4 Replies

8. Shell Programming and Scripting

NDM manual

Hi, Can any of you tell me how to get this ndm manual stuff? I need it to know specific error ids and descriptions Thanks, Vinodhini (1 Reply)
Discussion started by: vinodhini4
1 Replies

9. UNIX for Dummies Questions & Answers

No manual entry for

I don't seem to be able to get man pages up for any command. When I try the "No manual entry for..." message is displayed. When checking my $MANPATH variable I get the following /opt/SUNconn/man: However, when I check this directory it doesn't exist. Searching for any man directories results... (3 Replies)
Discussion started by: FattyLumpkin
3 Replies

10. Programming

exiting in c

how can i exit in a c program i have tried system ("exit"); but this doesnt seem to work just wondered if you could help. (3 Replies)
Discussion started by: ruffenator
3 Replies
Login or Register to Ask a Question