<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
<html>

<!-- Mirrored from use.perl.org/comments.pl?sid=20565&cid=31389 by HTTrack Website Copier/3.x [XR&CO'2010], Fri, 10 Feb 2012 09:15:59 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=iso-8859-1"><!-- /Added by HTTrack -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="shortcut icon" href="favicon.ico">

<title>Stripping certain requests from log files</title>

<link rel="stylesheet" type="text/css" media="screen, projection" href="../images.use.perl.org/based911.css?T_2_5_0_235">
<link rel="stylesheet" type="text/css" media="screen, projection" href="../images.use.perl.org/commentsd911.css?T_2_5_0_235">
<link rel="stylesheet" type="text/css" media="screen, projection" href="../images.use.perl.org/useperld911.css?T_2_5_0_235">
<link rel="stylesheet" type="text/css" media="print" href="../images.use.perl.org/printd911.css?T_2_5_0_235">
<link rel="stylesheet" type="text/css" media="handheld" href="../images.use.perl.org/handheldd911.css?T_2_5_0_235">

<script src="../images.use.perl.org/jquery/jquery-1.2.6d911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/jquery/jquery.metadatad911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/slash.utild911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/jquery/jquery.slashdotd911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/yui/yahood911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/yui/domd911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/yui/eventd911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/yui/dragdropd911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/yui/animationd911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/yui/calendard911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/sd_calendard911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/slash.article-infod911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/tag-uid911.js?T_2_5_0_235" type="text/javascript"></script>
<script src="../images.use.perl.org/commond911.js?T_2_5_0_235" type="text/javascript"></script>

<!-- start template: ID 121, header;misc;default -->

<link rel="top"       title="All the Perl that's Practical to Extract and Report" href="index.html" >
<link rel="search"    title="Search use Perl" href="search.html">
<link rel="alternate" title="use Perl RSS" href="index.rss" type="application/rss+xml">
</head>
<body class="useperlorg">
<div id="top_parent"></div>

<div id="jump">
	<a href="#main-articles">Stories</a>
	<br>
	<a href="#blocks">Slash Boxes</a>
	<br>
	<a href="#comments">Comments</a>
</div>
<div class="ad1">

</div>
<div id="frame">

<div style="text-align:center">NOTE: <b>use Perl;</b> is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.</div>


<!-- UsePerl Ad Start -->
<div class="ad1"><!-- ad position 1 -->
<div id="fad1" style="text-align:center">
<!-- DoubleClick Ad Tag 1 -->
<script type="text/javascript">
	dfp_ord=Math.random()*10000000000000000;
	dfp_tile = 1;

	document.write('<script type="text/javascript" src="http://ad.doubleclick.net/adj/ostg.useperl/mainpage_p1_leader;pg=index;logged_in=0;tile='+dfp_tile+';ord='+dfp_ord+'?"><\/script>');
	dfp_tile++;
</script>
</div>
<!-- End DoubleClick Ad Tag 1 --></div>
<!-- UsePerl Ad End -->

	<div id="topnav">
		<div id="logo">
			<h1>
				<a href="index.html">use Perl</a>
			</h1>
		</div>
                <div class="search">
			<form method="get" action="http://use.perl.org/search.pl">
				<fieldset>
					<legend></legend>
					<label>Search <strong>use Perl</strong></label>
					<input type="text" name="query" value="" size="20">
					<input type="submit" value="Go" class="button">
				</fieldset>
			</form>
		</div>
	</div>
	<div id="slogan">
		<h2>
			All the Perl that's Practical to Extract and Report
		</h2>
	</div>
	<div id="commentsnav">
		<div id="links">
			

<!-- start template: ID 474, sidebox;misc;default -->

<div class="block">
	<div class="title" id="navigation-title">
		<h4>
			Navigation
		</h4>
	</div>
	<div class="content" id="navigation-content">
		<ul>
	<li class="begin">
		<a href="faq.shtml">FAQ</a>
	</li>
	<li>
		<a href="about.shtml">About</a>
        </li>
        <li>
		<a href="submit.html">Submit Story</a>
        </li>
        <li>
		<a href="search.html">Older Stories</a>
        </li>
        <li>	
		<a href="topics.shtml">Topics</a>
        </li>
        <li>
		<a href="pollBooth.html">Polls</a>
        </li>
        <li>
		<a href="search9584.html">Journals</a>
        </li>
        <li>
		<a href="authors.html">Authors</a>
        </li>
        <li>
		<a href="modulelist/index.html">New Modules</a>
        </li>
        <li>
		<a href="login.html?op=edithome">Preferences</a>

        </li>
</ul>
	</div>
</div>

<!-- end template: ID 474, sidebox;misc;default -->


		</div>
	</div>
	<div id="contents">
		
		<div id="comments">

<!-- end template: ID 121, header;misc;default -->



<!-- start template: ID 159, printCommentsMain;misc;default -->

<a name="acomments"></a>
<div class="commentwrap" id="commentwrap">

<div class="commentBox" style="font-size: 120%">
	<div>
<span class="escape-link"><a href="_paulm/journal/19154.html" title="Back to Article - Stripping certain requests from log files">Stripping certain requests from log files</a></span>
<span class="commentBoxLinks"><a href="#" onclick="D2.ajaxFetchComments(0,1); return false"><span id="more_comments_num_d"></span> More</a> |

	<a href="login.html" onclick="show_login_box(); return false">Login</a>



	| <a href="commentsd237-4.html?sid=20565&amp;op=reply&amp;threshold=0&amp;commentsort=0&amp;mode=thread#31389" onclick="D2.replyTo(0); return false;">Reply</a></span>
	</div>
</div>

	<div class="commentBoxForm" id="commentControlBox">
<div></div>
	<div class="commentBox">
		<small>
		<b>The Fine Print:</b> The following comments are owned by whoever posted them.  We are not responsible for them in any way.
		</small>
<noscript><br><small>Without JavaScript enabled, you might want to
use <a href="commentsa3f4-4.html?sid=20565&amp;threshold=0&amp;commentsort=0&amp;mode=thread&amp;no_d2=1&amp;pid=31389">the classic discussion system</a> instead.  If you <a href="login.html">login</a>, you can remember this preference.
</small></noscript>
	</div>
	</div>
	
		<div id="d2out" class="horizontal">
		<div id="d2act" class="hide">
		<div class="loki" id="gods">
		<div class="block">
			<div class="title">

				<h4>
				
					<span class="h-inline">
					<a href="_paulm/journal/19154.html" title="Back to Article - Stripping certain requests from log files">Stripping certain requests from log files</a></span>
					<span class="titlecount"><a href="_paulm/journal/19154.html#topcomment" title="Back to Top Comment - Stripping certain requests from log files"><span id="titlecountnum">2</span>&nbsp;Comments</a></span>
				
		<span class="ccw-header-links"><a href="#" onclick="D2.ajaxFetchComments(0,1); return false"><span id="more_comments_num_b"></span> More</a> |

	<a href="login.html" onclick="show_login_box(); return false">Login</a>



	| <a href="commentsd237-4.html?sid=20565&amp;op=reply&amp;threshold=0&amp;commentsort=0&amp;mode=thread#31389" onclick="D2.replyTo(0); return false;">Reply</a></span>
		<span id="d2toggle" title="Toggle window location" onclick="D2.toggleDisplayOptions()" class="close">/</span>
				</h4>
			</div>
		</div>
<script type="text/javascript">
gCommentControlWidget = null;

YAHOO.slashdot.ThresholdApp = function() {
  return {
    init: function() {
      gCommentControlWidget = new YAHOO.slashdot.ThresholdWidget('X');
      gCommentControlWidget.setTHT(D2.user_threshold(), D2.user_highlightthresh());
      D2.updateTotals();
    }
  };
}();

YAHOO.util.Event.addListener(window, "load", YAHOO.slashdot.ThresholdApp.init);
</script>
		<div id="bones">
      <div id="ccw">
        <div id="ccw-body" class="ccw-core">
          <div id="ccw-panel-container" class="ccw-core">
            <div id="ccw-full-panel" class="ccw-panel">
              <div class="ccw-panel-border"></div>
              <div id="ccw-full-count-pos" class="ccw-core-pos ccw-count-pos">
                <span id="ccw-full-count-text" class="ccw-count-text"><span id="currentFull"></span><span id="ccw-full-phrase">&nbsp;Full</span></span>
              </div>
            </div>
            <div id="ccw-abbr-panel" class="ccw-panel">
              <div class="ccw-panel-border"></div>
              <div id="ccw-abbr-count-pos" class="ccw-core-pos ccw-count-pos">
                <span id="ccw-abbr-count-text" class="ccw-count-text"><span id="currentOneline"></span><span id="ccw-abbr-phrase">&nbsp;Abbreviated</span></span>
              </div>
            </div>
            <div id="ccw-hide-panel" class="ccw-panel">
              <div id="ccw-hide-count-pos" class="ccw-core-pos ccw-count-pos">
                <span id="ccw-hide-count-text" class="ccw-count-text"><span id="currentHidden"></span><span id="ccw-hide-phrase">&nbsp;Hidden</span></span>
              </div>
            </div>
          </div>
    
          <div id="ccw-control" class="ccw-core">
            <div id="ccw-centering-rail" class="ccw-core">
              <div id="ccw-hide-bar-pos" class="ccw-core-pos">
                <div id="ccw-hide-bar" class="ccw-bar">
                  <div id="ccw-hide-bar-tab" class="ccw-bar-tab"></div>
                  <div id="ccw-hide-bar-upzone" class="ccw-upzone" onclick="gCommentControlWidget.stepTHT(HIDE_BAR, +1)"></div>
                  <div id="ccw-hide-bar-downzone" class="ccw-downzone" onclick="gCommentControlWidget.stepTHT(HIDE_BAR, -1)"></div>
                </div>
              </div>
              <div id="ccw-abbr-bar-pos" class="ccw-core-pos">
                <div id="ccw-abbr-bar" class="ccw-bar">
                  <div id="ccw-abbr-bar-tab" class="ccw-bar-tab"></div>
                  <div id="ccw-abbr-bar-upzone" class="ccw-upzone" onclick="gCommentControlWidget.stepTHT(ABBR_BAR, +1)"></div>
                  <div id="ccw-abbr-bar-downzone" class="ccw-downzone" onclick="gCommentControlWidget.stepTHT(ABBR_BAR, -1)"></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
		</div>
		<div class="commentControlFooter"><a href="#" onclick="D2.ajaxFetchComments(0,1); return false"><span id="more_comments_num_c"></span> More</a> |

	<a href="login.html" onclick="show_login_box(); return false">Login</a>



	| <a href="commentsd237-4.html?sid=20565&amp;op=reply&amp;threshold=0&amp;commentsort=0&amp;mode=thread#31389" onclick="D2.replyTo(0); return false;">Reply</a><div id="login_cover" style="display:none" onclick="hide_login_box()"></div>
<div id="login_box" style="display:none">
<div class="generaltitle" >
	<div class="title">
		<h3 >
			Please Log In to Continue<a href="#" onclick="hide_login_box(); return false" class="close" title="Close this box"><img id="login_box_close" src="../images.use.perl.org/sic_close.png" alt="Close"></a>
			
		</h3>
	</div>
</div>
<div id="login_box_content">
<form action="http://use.perl.org/login.pl" method="post">
<fieldset>
	<legend>Log In</legend>
	<label>
		Nickname
	</label>
	<input type="text" name="unickname" size="20" value="">
	<label>
		Password
	</label>
	<input type="hidden" name="returnto" value="commentsb823.html?sid=20565">
	<input type="hidden" name="op" value="userlogin">
	<input type="password" name="upasswd" size="20">
	<label class="checkbox">
		<input type="checkbox" name="login_temp" value="yes">
		Public Terminal
	</label>
	<input type="submit" name="userlogin" value="Log in" class="button">
	</fieldset>
</form>
<p>
	[ <b>
		<a href="loginb6be.html?op=newuserform">
			Create a new account
		</a>
	</b> ]
</p>
</div></div>
<script type="text/javascript">logged_in = 0</script></div>
		<div id="commentControlBoxStatus" class="hide"><b>Loading... please wait.</b></div>
	</div>
</div>
		</div>
	
</div>
<a name="topcomment"></a>

<!-- end template: ID 159, printCommentsMain;misc;default -->



<!-- start template: ID 157, printCommComments;misc;default -->

<script src="../images.use.perl.org/commentsd911.js?T_2_5_0_235" type="text/javascript"></script>
	<script type="text/javascript">
<!--
	D2.d2_keybindings_disable()[191] = 1;
	window.onscroll = D2.d2act;
	D2.boxStatus(1);
D2.comments({ 31389: { uid: 164, pid: 0, read: 0, points: 1, kids: [ 31444 ], opid: 0 }, 31444: { uid: 5067, pid: 31389, read: 0, points: 1, kids: [  ], opid: 31389 } });

D2.thresh_totals({6:{6:{1:2,3:0,2:0}},4:{6:{1:2,3:0,2:0},4:{1:2,3:0,2:0},5:{1:2,3:0,2:0}},1:{6:{1:0,3:0,2:2},4:{1:0,3:0,2:2},1:{1:0,3:2,2:0},3:{1:0,3:0,2:2},2:{1:0,3:1,2:1},5:{1:0,3:0,2:2}},3:{6:{1:2,3:0,2:0},4:{1:2,3:0,2:0},3:{1:2,3:0,2:0},5:{1:2,3:0,2:0}},0:{6:{1:0,3:0,2:2},4:{1:0,3:0,2:2},1:{1:0,3:2,2:0},3:{1:0,3:0,2:2},0:{1:0,3:2,2:0},2:{1:0,3:1,2:1},5:{1:0,3:0,2:2}},2:{6:{1:2,3:0,2:0},4:{1:2,3:0,2:0},3:{1:2,3:0,2:0},2:{1:2,3:0,2:0},5:{1:2,3:0,2:0}},5:{6:{1:2,3:0,2:0},5:{1:2,3:0,2:0}},"-1":{6:{1:0,3:0,2:2},4:{1:0,3:0,2:2},1:{1:0,3:2,2:0},3:{1:0,3:0,2:2},0:{1:0,3:2,2:0},2:{1:0,3:1,2:1},5:{1:0,3:0,2:2},"-1":{1:0,3:2,2:0}}});

D2.root_comment(31389);
D2.root_comments([31389]);
D2.root_comments_hash({31389:1});

D2.d2_comment_order(0);
D2.user_uid(7);
D2.user_is_anon(1);
D2.user_is_admin(0);
D2.user_is_subscriber(0);
D2.user_threshold(0);
D2.user_highlightthresh(4);
D2.user_d2asp(0);

D2.discussion_id(20565);

D2.d2_seen('31389,55');
D2.more_comments_num(0);


//-->
	</script>




	
	
	
	
		<ul id="commentlisting" class="d2">
			<li id="tree_31389" class="comment contain">
<div id="comment_status_31389" class="commentstatus"></div>
<div id="comment_31389" class="full">

	<div id="comment_top_31389" class="commentTop newcomment">
		<div class="title">
			
			<h4><a id="comment_link_31389" name="comment_link_31389" href="comments3138.pl?sid=20565&amp;cid=31389" onclick="return D2.setFocusComment(31389)">zgrep might be handy too</a>
			
			<span id="comment_score_31389" class="score">(<a href="#" onclick="getModalPrefs('modcommentlog', 'Moderation Comment Log', 31389); return false">Score:1</a>)</span></h4>
		</div>
		<div class="details">
			by
			<a href="_grantm/index.html">grantm (164)</a>
			
			
			<span class="otherdetails" id="comment_otherdetails_31389">on 2004.06.09 14:10
			 (<a href="comments3138.pl?sid=20565&amp;cid=31389">#31389</a>)
			<small>
			
				<a href="http://www.mclean.net.nz/" title="http://www.mclean.net.nz/" class="user_homepage_display">Homepage</a>
				
				<a href="_grantm/journal/index.html" title="2010.06.03 16:08" class="user_journal_display">Journal</a>
				
			
			</small></span>
		</div>
	</div>
	<div class="commentBody">
		<div id="comment_body_31389"><code>zgrep -v '^ftp.itransact'</code><p><code><code>Of course once you add in a shell loop to iterate over the files and re-gzip them it starts to look like your original code<nobr> <wbr></nobr>:-)</code></code></p></div>
		
	
	</div>
	<div class="commentSub" id="comment_sub_31389">

		
			<span id="reply_link_31389" class="nbutton"><p><b><a href="commentsbee1-6.html?sid=20565&amp;op=Reply&amp;threshold=0&amp;commentsort=0&amp;mode=thread&amp;pid=31389" onclick="D2.replyTo(31389); return false;">Reply to This</a></b></p></span>
		

		
		
		

		

		</div>

</div>


<div id="replyto_31389"></div>

<ul id="group_31389">
	<li id="hiddens_31389" class="hide"></li>
</ul><ul id="commtree_31389"><li id="tree_31444" class="comment">
<div id="comment_status_31444" class="commentstatus"></div>
<div id="comment_31444" class="oneline">

	<div id="comment_top_31444" class="commentTop newcomment">
		<div class="title">
			
			<h4><a id="comment_link_31444" name="comment_link_31444" href="comments5578.html?sid=20565&amp;cid=31444" onclick="return D2.setFocusComment(31444)">Re:zgrep might be handy too</a>
			
			<span id="comment_score_31444" class="score">(<a href="#" onclick="getModalPrefs('modcommentlog', 'Moderation Comment Log', 31444); return false">Score:1</a>)</span></h4>
		</div>
		<div class="details">
			by
			<a href="_paulm/index.html">paulm (5067)</a>
			
			
			<span class="otherdetails" id="comment_otherdetails_31444"></span>
		</div>
	</div>
	<div class="commentBody">
		<div id="comment_body_31444">Yeah, true. zgrep's pretty handy for scanning but not so much use for in-place mods, so far as I've seen. I'm sure it's possible with some of bash's more esoteric (for me!) constructs... But why bother when perl's there, heh. It's funny watching these little hacks have perl appear in there somewhere (<tt>f=`perl<nobr> <wbr></nobr>...`</tt>), then as more functionality is needed, more of it gets shoe-horned into the perl invocation until *pop* it's all in perl and it gets re-written "properly":<blockquote><div><span class="substr"> </span><p> <tt>#!/bin/sh<br>exec perl $0.pl</tt></p> </div></blockquote><p>:-)</p></div>
		
	
	</div>
	<div class="commentSub" id="comment_sub_31444"></div>

</div>


<div id="replyto_31444"></div>

<ul id="group_31444">
	<li id="hiddens_31444" class="hide"></li>
</ul></li></ul></li>
			<li id="roothiddens" class="hide"></li>
		</ul>
	
	
	
	


<div id="replyto_0"></div>


<div id="discussion_buttons">


<span class="nbutton"><p><b><a href="#" onclick="D2.ajaxFetchComments(0,1); return false"><span id="more_comments_num_a" class="hide">Get More Comments</span></a></b></p></span>



<span class="nbutton"><p><b><a href="commentsd237-4.html?sid=20565&amp;op=reply&amp;threshold=0&amp;commentsort=0&amp;mode=thread#31389" onclick="D2.replyTo(0); return false;">Reply</a></b></p></span>







</div>



	<script type="text/javascript">
<!--
		D2.currents()['hidden']   = 0;
		D2.currents()['full']     = 1;
		D2.currents()['oneline']  = 1;
		// D2.currents_total(2);

		D2.abbrev_comments({31444:515});
		D2.noshow_comments([]);
		D2.pieces_comments([31444]);
		D2.init_hiddens([]);

		D2.finishLoading();


		if (D2.thresh_totals()[6][6][1] == 0) {
			D2.replyTo(0, 1);
		}


//-->
	</script>

<!-- end template: ID 157, printCommComments;misc;default -->



<!-- start template: ID 112, footer;misc;default -->

</div>
                </div>
                <div id="footer">
			<div class="download">
                                <!-- START DOWNLOAD PERL -->
                                <!-- Perl Mongers, Inc.  web@perlmongers.org -->
                                <a href="http://www.cpan.org/ports/index.html"><img src="http://www.perl.org/Images/download_perl.gif" width="102" height="42" alt="Download Perl Now!"></a>
                                <!-- END DOWNLOAD PERL -->
                        </div>	
			<div class="sitelogo">
				<a href="index.html">
					<img src="../images.use.perl.org/topics/useperl.gif" alt="useperl">
				</a>
			</div>
                        <em>
				&nbsp; &nbsp; break;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* don't do magic till later */<BR>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --Larry Wall in stab.c from the perl source code
			</em>
		</div>
		<div class="copyright">
			Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
		</div>
		<div class="btmnav">
			<ul>
	<li class="begin">
		<a href="faq.shtml">FAQ</a>
	</li>
	<li>
		<a href="about.shtml">About</a>
        </li>
        <li>
		<a href="submit.html">Submit Story</a>
        </li>
        <li>
		<a href="search.html">Older Stories</a>
        </li>
        <li>	
		<a href="topics.shtml">Topics</a>
        </li>
        <li>
		<a href="pollBooth.html">Polls</a>
        </li>
        <li>
		<a href="search9584.html">Journals</a>
        </li>
        <li>
		<a href="authors.html">Authors</a>
        </li>
        <li>
		<a href="modulelist/index.html">New Modules</a>
        </li>
        <li>
		<a href="login.html?op=edithome">Preferences</a>

        </li>
</ul>
		</div>
        </div>
<div id="modal_cover" style="display:none" onclick="hide_modal_box()"></div>
<div id="modal_box" style="display:none">
        <div class="generaltitle" >
                <div class="title"><h3><span id="preference_title"></span> <a href="#" onclick="hide_modal_box(); return false"><img src="../images.use.perl.org/sic_close.png" alt="Close"></a></h3></div>
        </div>
        <div id="modal_box_content"></div>
</div>

	<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
	<script type="text/javascript">
		_uacct = "UA-32013-15";
		urchinTracker();
	</script>

</body>

<!-- Mirrored from use.perl.org/comments.pl?sid=20565&cid=31389 by HTTrack Website Copier/3.x [XR&CO'2010], Fri, 10 Feb 2012 09:15:59 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=iso-8859-1"><!-- /Added by HTTrack -->
</html>

<!-- end template: ID 112, footer;misc;default -->

