<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 19:00:57 +0000</lastBuildDate>
    <item>
      <title>(Bash) Remote sed editing multiple hosts: How to quote - bubnoff</title>
      <link>https://snipplr.com/view/58962/remote-sed-editing-multiple-hosts-how-to-quote</link>
      <description>&lt;p&gt;Here's a quick one-off trick for sed editing conf files on remote hosts. I will&#13;
post the core sed command first, showing the crazy quoting, then a for loop demonstrating how one might tackle multiple hosts. Took me a few tries to get the quoting so thought I'd save others the trouble.  &#13;
&#13;
In this example I had to change the homepage variable in a remote conf file. &#13;
&#13;
* The URL needs single quotes in the conf file. '\'' does the trick.&#13;
* The End of Line metacharacter '$' needs to be escaped for bash. Like so, \$.&#13;
* Finally, note that the sed expression is wrapped in single quotes while the whole command is wrapped with double quotes. I tried other combos -- if you know why this is so, do tell.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Sep 2011 04:41:55 UTC</pubDate>
      <guid>https://snipplr.com/view/58962/remote-sed-editing-multiple-hosts-how-to-quote</guid>
    </item>
    <item>
      <title>(Bash) Delete blank lines with sed - bubnoff</title>
      <link>https://snipplr.com/view/53325/delete-blank-lines-with-sed</link>
      <description>&lt;p&gt;Find any line with beginning of line followed by zero or more tabs, spaces followed by end of line -- delete it.&lt;/p&gt;</description>
      <pubDate>Wed, 11 May 2011 05:39:57 UTC</pubDate>
      <guid>https://snipplr.com/view/53325/delete-blank-lines-with-sed</guid>
    </item>
    <item>
      <title>(Bash) Merge lines with SED. - bubnoff</title>
      <link>https://snipplr.com/view/53323/merge-lines-with-sed</link>
      <description>&lt;p&gt;Merge line below to current line. &#13;
&#13;
"This one-liner joins two consecutive lines with the "N" command. They get joined with a "\n" character between them. The substitute command replaces this newline with a space, thus joining every pair of lines with a whitespace."&#13;
&#13;
From catonmat here:&#13;
&#13;
http://www.catonmat.net/blog/sed-one-liners-explained-part-one/&lt;/p&gt;</description>
      <pubDate>Wed, 11 May 2011 05:16:19 UTC</pubDate>
      <guid>https://snipplr.com/view/53323/merge-lines-with-sed</guid>
    </item>
    <item>
      <title>(Bash) HTML Table to CSV in AWK [awk] - bubnoff</title>
      <link>https://snipplr.com/view/52126/html-table-to-csv-in-awk-awk</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 15 Apr 2011 12:30:03 UTC</pubDate>
      <guid>https://snipplr.com/view/52126/html-table-to-csv-in-awk-awk</guid>
    </item>
  </channel>
</rss>
