書式
					<!--#exec cmd="grep 'MSIE 5' /usr/local/apache2/logs/access_log | grep 'Mac' | wc -l" -->
					
			
				
説明
				Internet Explorer 5 (Mac)でアクセスした数を表示させるにはgrepを使ってアクセスログからMSIE 5の文字を抽出します。次にMacの文字を抽出しwc -lで行数をカウントすればアクセスされた数が表示されます。Windows版は5.0と5.01ですが、Macintosh版は5.0〜5.23などのバージョンがあります。
				
			
					
					
					<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
			<html>
			<head>
			<meta http-equiv="content-type" content="text/html;charset=shift_jis">
			<title>Internet Explorer 5 (Mac)でアクセスした数を表示</title>
			</head>
			<body>
			Internet Explorer 5 (Mac)でアクセスした数<br>
			<pre>
			<!--#exec cmd="grep 'MSIE 5' /usr/local/apache2/logs/access_log | grep 'Mac' | wc -l" -->
			</pre>
			</body>
			</html>