in reply to Printing the last few lines of the Error log

PPT to the rescue! tail

--
perl -p -e "s/(?:\w);([st])/'\$1/mg"

  • Comment on Re: Printing the last few lines of the Error log

Replies are listed 'Best First'.
Re: Re: Printing the last few lines of the Error log
by k2 (Scribe) on Nov 20, 2001 at 22:01 UTC
    I'm impressed!
    It works really good on my w2k...
    I don't know how I can have missed this great piece of code...

    It's a pain trying to get the last lines of a huge log-file
    on a M$-machine, but this will do the trick...

    /k2
      While not to disparage the PPT, you might want to have a look at the cygwin toolset for W32. It contains tail amongst many other unix tools, usable from both cmd and bash. Oh and under cmd.exe AFAIK you have no worries about using it as per earlier comments on security vulnerabilities.

      Yves / DeMerphq
      --
      Have you registered your Name Space?