Computing.Net > Forums > Unix > Use vi to read Unix manual

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Use vi to read Unix manual

Reply to Message Icon

Name: Luke Chi
Date: August 9, 2005 at 06:46:47 Pacific
OS: Solaris
CPU/Ram: 8
Comment:

UNIQUE=`date '+%y%m%d%H%M%S'`
HEAD=/tmp/${LOGNAME}
TAIL=man_1
TMP_FILE=${HEAD}_${UNIQUE}.$TAIL
man "$@" | col -bx > $TMP_FILE
sh -c "sleep 1; rm $TMP_FILE" &
vi $TMP_FILE


Luke Chi



Sponsored Link
Ads by Google

Response Number 1
Name: kamalpreet
Date: August 9, 2005 at 21:02:01 Pacific
Reply:

there is an eaisier way
man "command" > "file_name"
now use any editor to view this file..


0

Response Number 2
Name: Jim Boothe
Date: August 10, 2005 at 06:11:31 Pacific
Reply:

On some platforms, and depending on your terminal type, redirecting output of man to a file will capture a large amount of binary garbage into the file, rendering it unreadable.

This is why Luke pipes it through "col -b".


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


getting started with unix... Trim and Timestamp



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Use vi to read Unix manual

problem using cat to read data www.computing.net/answers/unix/problem-using-cat-to-read-data/6692.html

How to delete ^M character using vi www.computing.net/answers/unix/how-to-delete-m-character-using-vi/2451.html

how to read in an external text fil www.computing.net/answers/unix/how-to-read-in-an-external-text-fil/3757.html