Logging helper

From City of Hope MUSH
Revision as of 08:58, 19 October 2020 by Warmstarter (talk | contribs) (Created page with "Category:Unofficial <b>Note:</b> This guide was written by a player. It is not officially sanctioned by staff. While best attempts have been made at accuracy, it is possi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Note: This guide was written by a player. It is not officially sanctioned by staff. While best attempts have been made at accuracy, it is possibly inaccurate or out-of-date. If you see something that should be changed, please contact Bobbi on MUSH.

This is intended as a repository of scripts that clean-up logs. They rely on the assumption that you are logging everything, and that the logs of each character goes into a separate file. To run these scripts, you will need access to typical command-line tools, which should be built-in to any Linux or OS X system.

Marking Logs

When you start a scene:

think SCENE#START

When you end a scene:

think SCENE#END

Replace '#' with an appropriate number for other unique marker for the scene.

Extract scene log from raw log and print to screen:

awk '/SCENE#START/,/SCENE#END/' filename

Extract scene log from raw log into new file:

awk '/SCENE#START/,/SCENE#END/' filename > newfilename

This will give you everything that happened between when you set those markers.

Coming soon: ways to automatically remove various OOC output.