<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Anders Hejlsberg on Amit Agarwal Linux Blog</title>
    <link>/tags/anders-hejlsberg/</link>
    <description>Recent content in Anders Hejlsberg on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 18 Dec 2013 00:40:45 +0000</lastBuildDate>
    
	<atom:link href="/tags/anders-hejlsberg/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Fix typescript files generated with script command</title>
      <link>/2013/12/18/fix-typescript-files-generated-script-command/</link>
      <pubDate>Wed, 18 Dec 2013 00:40:45 +0000</pubDate>
      
      <guid>/2013/12/18/fix-typescript-files-generated-script-command/</guid>
      <description>&lt;p&gt;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 &lt;a class=&#34;zem_slink&#34; title=&#34;Color code&#34; href=&#34;http://en.wikipedia.org/wiki/Color_code&#34; target=&#34;_blank&#34; rel=&#34;wikipedia&#34;&gt;color codes&lt;/a&gt;, and as such can be removed very easily with a single command:&lt;/p&gt;
&lt;pre class=&#34;brush: bash; gutter: true; first-line: 1&#34;&gt;cat &lt;a class=&#34;zem_slink&#34; title=&#34;TypeScript&#34; href=&#34;http://www.typescriptlang.org/&#34; target=&#34;_blank&#34; rel=&#34;homepage&#34;&gt;typescript&lt;/a&gt; | 
 perl -pe &#39;s/e([^[]]|[.*.*?[a-zA-Z]|].*?a)//g&#39; | col -b &amp;gt; typescript-processed&lt;/pre&gt;
&lt;p&gt;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.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
