grep-ing server.log

Discussion in 'Bukkit Help' started by yttriuszzerbus, Jun 18, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    yttriuszzerbus

    I have around eight months of server.log files on my PC, which I have concantenated into one large file. What I'd like to do is get only chat lines (I can put in a list of players) dump them to a text file. I know I need to do something with grep, cat, pipes and regexes, but I don't know what. Any ideas?
     
  2. Offline

    Slugslug

    my guess is the best you'll get is
    grep [INFO] server.log

    you didn't need to combine them all into one log you could use
    grep [INFO] server.log*
     
  3. Offline

    TnT

    I prefer piping to grep myself.

    Code:
    cat server.log | grep <string> 
    
     
Thread Status:
Not open for further replies.

Share This Page