imglist

   imglist

  사용법


	imglist [-V]
	imglist [-T][-B basedir][-b bgcolor][-t title][-C bg[:fg]][-S charset][-o outfile][-l [-x]][-c n][-y][-a {l|c|r}][-d][-D][-n|-N][-p|-P n] img-files ...
	imglist [-T][-B basedir][-b bgcolor][-t title][-C bg[:fg]][-S charset][-o outfile][-l [-x]][-c n][-y][-a {l|c|r}][-d][-D][-n|-N][-p|-P n] -f file
	imglist [-T][-b bgcolor][-t title][-C bg[:fg]][-S charset][-o outfile][-c n][-y][-a {l|c|r}][-d][-D][-n|-N][-p|-P n] -F files ...
	imglist -s [-b bgcolor][-t title][-C bg[:fg]][-C charset][-o outfile]
	imglist -e [-o outfile]

	Options are as follows:

	-?           print this help
	-a {l|c|r}   specify alignment, l:left, c:center, r:right (default: l)
	-B basedir   base directory name for image file
	-b bgcolor   background color of HTML BODY tag
	-C bg[:fg]   specify color of table
	                 bg: background color of the table; def: NONE; example) #eeeeee
	                 fg: color of border line of the table; def: black; example) #0000ff
	-c n         specify number of columns; def:1
	-D           draw outline
	-d           draw inline
	-e           print only ending tag of HTML ()
	-f           file has img-files; one per line; use "-" for stdin
	-F           file have HTML text
	-l           list hyperlink instead of img
	-N           print directory name
	-n           print file name
	-o outfile   specify output file
	-p           put space between graphs; is equals to '-P 5'
	-P n         put n dots space around graphs. (TABLE's cellpadding=n)
	-s           print only starting tag of HTML (...)
	-S charset   specify character set; for Korean character set: 'euc-kr', 'utf-8'
	-t title     specify title
	-T           print table only
	-V           show version
	-x           remove '.html' and '.htm' from link name with -l option
	-y           print the numbers at the graphs

	img-files    GIF files to be used
  설명

imglist 명령어는 mkgraph 명령어나 기타 명령어로 만든 그래프 파일들을 HTML 페이지로 한번에 볼 수 있도록 HTML 테그로 만들어 표준출력에 출력한다.
이 내용을 파일로 받아 웹으로 볼 수 있다.

# imglist vm.gif mp.gif <html> <head> <style type=text/css> body,a,dir,td,th,b,p,select,div,span { font-family:arial, helvetica, sans-serif; font-size: 10pt } </style> <title>image list</title> </head> <body> <table border=0 cellpadding=0 cellspacing=0> <tr> <td valign=top align=left> <img src='vm.gif'><br> </td> </tr> <tr> <td valign=top align=left> <img src='mp.gif'><br> </td> </tr> </table> </body> </html> # imglist *.gif > all_graph.html

# imglist -B /tmp vm.gif

<html> <head> <style type=text/css> a,dir,,td,th,b,p,select,div { font-family:arial, helvetica, sans-serif; font-size: 10pt } </style> <title>image list</title> </head> <body> <table border=0 cellpadding=0 cellspacing=0> <tr> <td valign=top align=left> <img src='/tmp/vm.gif'><br> </td> </tr> </table> </body> </html> # imglist -l sys1.html sys2.html <html> <head> <style type=text/css> a,dir,,td,th,b,p,select,div { font-family:arial, helvetica, sans-serif; font-size: 10pt } </style> <title>image list</title> </head> <body> <table border=0 cellpadding=0 cellspacing=0> <tr> <td valign=top align=left> <a href='sys1.html'>sys1.html</a><br> </td> </tr> <tr> <td valign=top align=left> <a href='sys2.html'>sys2.html</a><br> </td> </tr> </table> </body> </html>
# imglist csw.gif ithr.gif syscl.gif > test.html

[test.html]



# imglist csw.gif "=Interrupt" ithr.gif syscl.gif > test2.html

[test2.html]

Interrupt


# cat pic.txt
csw.gif
ithr.gif
syscl.gif
# imglist -f pic.txt > test3.html

[test3.html]



imglist 명령어는 지정한 파일을 HTML 페이지로 만들 때, 그 파일명을 table에 넣어서 표시한다. 파일명에 ==로 시작하면 그림 파일명으로 인식하지 않고, 새로운 라인에 == 을 제외한 문자를 글자 그대로 출력한다. 파일명이 =로 시작하면 = 을 제외한 문자를 그대로 출력한다.
-c 옵션이 지정되지 있지 않으면, ===가 차이가 없지만 -c 옵션을 사용하여 한 줄에 여러 컬럼의 그래프를 만들 경우에 다음과 같은 차이가 있다.

# imglist -c 2 i_pic1.gif =pic2_skip i_pic3.gif i_pic4.gif > output.html

pic2_skip


# imglist -c 2 i_pic1.gif ==pic2_skip i_pic3.gif i_pic4.gif > output.html

pic2_skip


파일명이 =.L 또는 ==.L 로 시작하면, =.L 또는 ==.L를 제외한 부분을 hyper link로 간주한다.

-d 옵션과 -D 옵션을 사용하면 각 그림파일에 외곽선을 그릴 수 있다.

옵션설명
-a {l|c|r} -a 옵션은 정렬방식을 지정한다. imglist의 명령어 라인에 지정한 파일명을 HTML 페이지의 table에 넣게 되는데 이때 table 내의 정렬방식을 지정한다.
l 은 왼쪽 정렬(left)
c 은 중앙 정렬(center) 
r 은 오른쪽 정렬(right)
-B basedir -B 옵션은 베이스 디렉토리를 지정한다. -B 옵션 없이 명령어에 xx.gif 라는 파일명을 지정하면, 출력에서 다음과 같은 형식으로 바뀐다. <img src=xx.gif> 여기서 -B /opt 옵션을 지정하면, 다음과 같이 출력된다. <img src=/opt/xx.gif>
-b bgcolor -b 옵션은 HTML에서 배경색을 지정한다.
-c n -c 옵션은 지정한 n 개의 컬럼으로 그래프를 그린다.
-C bg[:fg] -C bg[:fg] 옵션을 사용하여 TABLE 테그의 배경색과 경계선의 색을 지정할 수 있다.
	bg: 배경색
	fg: 경계선의 색
# imglist -P 5 -C '#6B8E23:#0000ff' -D -c 2 i_pic1.gif i_pic2.gif i_pic3.gif i_pic4.gif > output.html




-N -N 옵션은 지정한 파일명에서 디렉토리명 만 그래프 앞에 붙여준다.
-o -o outfile 옵션을 사용하여 실행 결과를 파일로 저장한다.
이 옵션이 지정되어 있지 않으면, 표준 출력으로 실행 결과를 출력한다.
-d -d 옵션은 각각의 그래프에 경계선을 그린다.

# imglist -d -c 2 pic1.gif pic2.gif pic3.gif pic4.gif > output.html




-D -D 옵션은 전체에 대한 외곽선을 그린다.

# imglist -D -c 2 pic1.gif pic2.gif pic3.gif pic4.gif > output.html




-e -e 옵션은 다음과 같은 HTML tag를 출력한다. </body> </html>
-f -f 옵션은 그림 파일명을 명령어 라인에 지정하지 않고 지정한 file에 지정한다. 한줄에 하나씩 그림 파일명 지정한다.
파일명이 = 로 시작하면 그림 파일명으로 인식하지 않고 = 이후의 글자를 그대로 출력한다.

파일명으로 "-"를 사용하면 표준입력을 사용한다.

-F -F 옵션은 file 들이 HTML text를 가지고 있는 것으로 간주한다. 각 파일의 내용을 HTML table에 넣에서 표준 출력으로 출력한다.
다음은 각각 HTML 파일을 가지고 있는 것을 -c 2 -F 옵션을 사용하여 두 컬럼으로 HTML 파일을 만들 수 있다.

# imglist -T -D pic1.gif pic2.gif pic3.gif > p1.out
# imglist -T -D pic4.gif pic5.gif pic6.gif > p2.out
# imglist -c 2 -F p1.out p2.out > output.html






-l -l 옵션은 주어진 파일명에 대하여 image 아닌 hyper link를 연결한다.
-n -n 옵션은 지정한 파일명을 그래프 앞에 붙여준다.

# imglist -n -c 2 pic1.gif pic2.gif pic3.gif pic4.gif > output.html
pic1.gif

pic2.gif

pic3.gif

pic4.gif

-N -N 옵션은 지정한 파일명에서 디렉토리명 만 그래프 앞에 붙여준다.
-p
-P n
-p 옵션은 각 그림파일을 일정 간격으로 배치한다. HTML의 TABLE의 cellpadding에 6를 지정한다.

-P n 옵션을 사용하면 cellpadding에 n을 지정한다.

# imglist -p -c 2 pic1.gif pic2.gif pic3.gif pic4.gif > output.html





-s -s 옵션은 다음과 같은 HTML tag를 출력한다. <html> <head> <style type=text/css> a,dir,,td,th,b,p,select,div { font-family:arial, helvetica, sans-serif; font-size: 10pt } </style> <title>image list</title> </head> <body>
-S charset -S charset 옵션을 사용하여 HTML 문서의 character set를 지정할 수 있다. 한글 문자 셋에는 'euc-kr' 또는 'utf-8'을 지정할 수 있다.
"-S utf-8" 을 지정하면, 다음과 같이 charset에 'utf-8'이 표현된다.
<META HTTP-EQUIV='Content-Type' CONTENT="text/html; charset='utf-8'">
-T -T 옵션은 HTML 중에서 body안에 있는 table 내용만 출력한다.
다음은 -T 옵션을 사용할 경우와 사용하지 않을 경우에 출력되는 내용을 보여준다.

# imglist -T vm.gif mp.gif

<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td valign=top align=left>
<img src='vm.gif'><br>
</td>
</tr>
<tr>
<td valign=top align=left>
<img src='mp.gif'><br>
</td>
</tr>
</table>

# imglist vm.gif mp.gif

<html>
<head>
<style type=text/css> 
a,dir,,td,th,b,p,select,div {
font-family:arial, helvetica, sans-serif; font-size: 10pt
}
</style>
<title>image list</title>
</head>
<body>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td valign=top align=left>
<img src='vm.gif'><br>
</td>
</tr>
<tr>
<td valign=top align=left>
<img src='mp.gif'><br>
</td>
</tr>
</table>
</body>
</html>

-s 와 -e 와 -T 옵션을 사용하면 다음과 같이 여러개의 테이블에 그림들을 넣어서 HTML 파일을 만들 수 있다.

# imglist -s > output.html
# echo "<p><b>System: sun1</b>" >> output.html
# imglist -T -D vm_sun1.gif mp_sun1.gif >> output.html
# echo "<p><b>System: sun2</b>" >> output.html
# imglist -T -D vm_sun2.gif mp_sun2.gif >> output.html
# imglist -e >> output.html 

-t title -t 옵션은 HTML에서 제목을 지정한다.
이 제목은 웹브라우저의 윈도우 타이틀과 HTML 본문 첫번째 라인에 표시된다.

# imglist -t "sample graph" -c 2 i_pic1.gif i_pic2.gif i_pic3.gif i_pic4.gif > 1.html
sample graph




제목의 첫글자가 "." 이면 이 "." 을 제외한 글자를 웹브라우저의 윈도우 타이틀에만 표시한다.

-V -V 옵션을 지정하면, 명령어의 버전 정보를 보여준다.
-x -x 옵션을 지정하면 링크명을 표시할 때, '.html' 또는 '.htm' 접미사를 제거한다.
이 옵션은 -l 옵션과 함께 사용된다.
-y -y 옵션을 지정하면, 그림이나 링크 앞에 번호를 붙인다. 번호는 1 부터 시작하여 1 씩 증가시킨다.

# imglist -y -c 2 i_pic1.gif i_pic2.gif i_pic3.gif i_pic4.gif > 1.html
 1 
 2 
 3 
 4