Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Little things ;)

by snapdragon (Monk)
on Dec 13, 2001 at 17:48 UTC ( [id://131612]=note: print w/replies, xml ) Need Help??


in reply to Little things ;)

Actually that's kinda spooky - something similar literally just happened. My boss asked my to find out how many 404 error messages out site was getting. So I typed in:

grep '404' error.log | wc

I gave him the answer and he was curious enough to ask what I'd just typed in meant. So I told him that I'd used a gloabl regular expression parser to look the text '404' and then pipe that output into word count. He just shook his head and said that I was 'such a geek'. Now I'm not offended by that (in fact I think it's kinda a compliment). But still I reckon that my explanation was pretty understandable.

Oh well back to geeking out I guess :-)

Replies are listed 'Best First'.
Re: Re: Little things ;)
by jmcnamara (Monsignor) on Dec 13, 2001 at 18:17 UTC

    You could have done this. ;-)     grep -c 404 error.log

    --
    John.

      Or even this:
      perl -pe '$\+=/\b404\b/}{' error_log
      (I should probably attribute fwp-golf hole #3 for the inspiration behind this)

      -Blake

Re (tilly) 2: Little things ;)
by tilly (Archbishop) on Dec 13, 2001 at 19:12 UTC
    <tease>
    You can tell your boss you aren't so much a geek.

    The p in grep stands for print, and is a reference to what it does when it matches on a line. (Or at least so Friedl claims in Mastering Regular Expressions.)
    </tease>

Re: Re: Little things ;)
by Elgon (Curate) on Dec 14, 2001 at 16:17 UTC

    I sort of know what you mean snapdragon,

    There is a profound difference in culture between the two firms I have worked at recently: At the first, calling someone a geek was a major compliment whereas at the second, when I asked who our resident "JavaScript geek" was, I was firmly told by one of the other consultants that the firm does not employ geeks. Oh well...

    Elgon

    "A nerd is someone who knows the difference between a compiled and an interpreted language, whereas a geek is a person who can explain it cogently over a couple of beers"
           - Elgon

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://131612]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-25 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found