2007. 11. 3. 21:24 Unix

unix man 페이지 변환

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                             UNIX GURU UNIVERSE
                                UNIX HOT TIP

                       Unix Tip 2373 - July  1, 2006

                   
http://www.ugu.com/sui/ugu/show?tip.today
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

unix man 페이지 변환

(또 다른 접근법)

unix man 페이지를 텍스트 포맷으로 변환하기 위해서는 'man' 자체의 기능을
사용할 수 있다.(man man을 확인하라)

PAGER 환경변수를 'cat'으로 설정하라. 그 후 다음을 실행하라

'man command_name > command_name.txt'

예를 들어 csh에서 lsman 페이지를 텍스트 파일로 보려면
'setenv PAGER cat'실행하고

man ls > ls.txt

주의 : PAGER 환경변수를 해제하는 것(unsetenv PAGER)을 잊지마라,  그렇지
않으면 매번 man 명령어를 실행할 때마다  'more' 또는 'less'를 하기 위해서
파이프를 사용해야 할 것이다.
 
譯者 註 : 내 생각에는 man 페이지의 내용을 텍스트 파일로 만드는 데는 다음의
명령이 최고인 것 같다.(난 주로 bash를 사용한다.)
 
man ls | col -b > ls.txt
 
@@@@@@@@@@@@@@@@@@@@[ 원문 ]@@@@@@@@@@@@@@@@@@@@

CONVERTING UNIX MAN PAGES

(Another approach)

To convert Unix Man pages
to text format, you can make
use of one feature of 'man'
itself.  (check out man man)

Set environment variable
PAGER to 'cat'.  Then run:

'man command_name > command_name.txt'

eg. in csh, to see man ls in a text file
setenv PAGER cat
man ls > ls.txt

NOTE: Do not forget to
unsetenv PAGER, else you will
have to pipe every man command
to 'more' or (my favourite) 'less'.
반응형
Posted by She쥐포s

블로그 이미지
She쥐포s
Yesterday
Today
Total

달력

 « |  » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

최근에 올라온 글

최근에 달린 댓글

글 보관함