helpful one-liners

Discussion in 'Mac and Linux' started by asgo, June 30, 2013.

  1. asgo

    asgo Member

    Messages:
    457
    Likes Received:
    21
    Since one Linux you get nice verbose console output, there might be useful scripts and one-liners to aid the player and who doesn't like stringing bash commands together. ;)

    Inspired by one of the ideas in the mod section is a simple chat log filter, so you don't miss anything or can keep it after the game, if it contained useful information for later - works life and after the game.
    Code:
    while [ 1 ]; do clear ; grep chat <LOGFILE>    | grep INFO |awk 'BEGIN { FS = "\"" } ; { print substr ($1,0,14) " <" $12 ">:" $4 }'; sleep 2; done
    
    feel free to add.


    PS: don't know if the console output is planned to stay verbose on that level, so might be a time limited fun.

Share This Page