<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bash on Evan Hoffman</title><link>https://evan.wtf/tags/bash/</link><description>Recent content in Bash on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Fri, 26 Jul 2013 12:47:32 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/bash/index.xml" rel="self" type="application/rss+xml"/><item><title>Linux 'date' stuff I didn't know until recently.</title><link>https://evan.wtf/2013/07/26/linux-date-stuff-i-didnt-know-until-recently/</link><pubDate>Fri, 26 Jul 2013 12:47:32 +0000</pubDate><guid>https://evan.wtf/2013/07/26/linux-date-stuff-i-didnt-know-until-recently/</guid><description>&lt;p&gt;I&amp;rsquo;ve been using Linux for a long time but I had no idea you could do this.&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;evan@evbox:~$ date -d yesterday&#10;Thu Jul 25 12:44:39 EDT 2013&#10;evan@evbox:~$ date -d &amp;#39;42 days ago&amp;#39;&#10;Fri Jun 14 12:44:51 EDT 2013&#10;evan@evbox:~$ date -d &amp;#39;65 minutes ago&amp;#39;&#10;Fri Jul 26 11:41:18 EDT 2013&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;As epoch:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;evan@evbox:~$ date -d &amp;#39;65 minutes ago&amp;#39; +%s&#10;1374853307&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Amazing.&lt;/p&gt;</description></item><item><title>Running MRTG cfgmaker across your entire subnet?</title><link>https://evan.wtf/2010/01/27/running-mrtg-cfgmaker-across-your-entire-subnet/</link><pubDate>Wed, 27 Jan 2010 13:00:30 +0000</pubDate><guid>https://evan.wtf/2010/01/27/running-mrtg-cfgmaker-across-your-entire-subnet/</guid><description>&lt;p&gt;I realized recently that I had a bunch of newly-provisioned VMs that weren&amp;rsquo;t being monitored by MRTG (one of the tools we use to monitor network usage and other fun stats). Rather than manually run cfgmaker against all the new machines, I decided to script my way out of this.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Step 1: Build a list of hosts to monitor&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;For this I used an nmap ping test to generate a list of &amp;ldquo;up&amp;rdquo; hosts:&lt;/p&gt;</description></item></channel></rss>