Fix typescript files generated with script command

Generally quite a lot of us would have used the script command. This generates the logs for the session. But the problem with the logs is that it contains a lot of un-readable characters. These characters are mostly from the color codes, and as such can be removed very easily with a single command:

cat typescript | 
 perl -pe 's/e([^[]]|[.*.*?[a-zA-Z]|].*?a)//g' | col -b > typescript-processed

This assumes the input log file is named as typescript and the output is kept as typescript-processed. You can change the names as required.

 

 

Enhanced by Zemanta

Blogging from N900

English: Nokia N900 communicator/internet tabl...
Image via Wikipedia

Can´t get simpler than this. Just install the application called wordpress in your N900, and punch in the details for your blog along with your admin login and password and you have a amazing wordpress client. You can even add photos like the one below:

N900 and its applications keep me amazed and happy 🙂

Enhanced by Zemanta

Slackware Linux 13.37 RC 3.1415926535897932384626433832

Slackware released the next version a few days back and guess the complete name : Slackware Linux 13.37 RC 3.1415926535897932384626433832. You must be crazy to tell the complete version to anyone.

Development Release: Slackware Linux 13.37 RC 3.1415926535897932384626433832 More fun with Slackware’s version numbers as Patrick Volkerding announces the latest release candidate for the upcoming Slackware Linux 13.37: +ACI-There have been quite a few changes so we will have one more release candidate: Slackware 13.37 RC 3.14159265358979323846264338327950288419716. Very close now+ACE But we’ll likely hold out for….

Enhanced by Zemanta