<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Refining Linux - Comments</title>
    <link>https://www.refining-linux.org/</link>
    <description>Refining Linux - Take your Linux to the next level</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.1.2 - http://www.s9y.org/</generator>
    <pubDate>Thu, 05 Mar 2026 08:17:37 GMT</pubDate>

    <image>
    <url>https://www.refining-linux.org/templates/reflinux-2012/img/design/tux_painting-fs8.png</url>
    <title>RSS: Refining Linux - Comments - Refining Linux - Take your Linux to the next level</title>
    <link>https://www.refining-linux.org/</link>
    <width></width>
    <height></height>
</image>

<item>
    <title>alivefromupstairs: ZSH Gem #19: Global aliases</title>
    <link>https://www.refining-linux.org/archives/53-ZSH-Gem-19-Global-aliases.html#c1003</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/53-ZSH-Gem-19-Global-aliases.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=53</wfw:comment>

    

    <author>nospam@example.com (alivefromupstairs)</author>
    <content:encoded>
    Global aliases do not tab complete for me. Is this the case for everyone or just on my end?
 
    </content:encoded>

    <pubDate>Fri, 27 Dec 2019 23:58:24 +0100</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/53-guid.html#c1003</guid>
    
</item>
<item>
    <title>Lucius: ZSH Gem #8: Hook function chpwd()</title>
    <link>https://www.refining-linux.org/archives/42-ZSH-Gem-8-Hook-function-chpwd.html#c994</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/42-ZSH-Gem-8-Hook-function-chpwd.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=42</wfw:comment>

    

    <author>nospam@example.com (Lucius)</author>
    <content:encoded>
    The last section on the parameter array is really helpful.
Thanks.
 
    </content:encoded>

    <pubDate>Fri, 31 May 2019 06:51:01 +0200</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/42-guid.html#c994</guid>
    
</item>
<item>
    <title>Chit Ko Ko Win: Performing push backups – Part 2: rsnapshot</title>
    <link>https://www.refining-linux.org/archives/66-Performing-push-backups-Part-2-rsnapshot.html#c959</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/66-Performing-push-backups-Part-2-rsnapshot.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=66</wfw:comment>

    

    <author>nospam@example.com (Chit Ko Ko Win)</author>
    <content:encoded>
    Great Article
 
    </content:encoded>

    <pubDate>Wed, 23 May 2018 05:48:35 +0200</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/66-guid.html#c959</guid>
    
</item>
<item>
    <title>Ouroboros: Dr. Frankenlinux or how to create zombie processes</title>
    <link>https://www.refining-linux.org/archives/7-Dr.-Frankenlinux-or-how-to-create-zombie-processes.html#c958</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/7-Dr.-Frankenlinux-or-how-to-create-zombie-processes.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=7</wfw:comment>

    

    <author>nospam@example.com (Ouroboros)</author>
    <content:encoded>
    &quot;just try this bash command...&quot; says the guy who posts a fork bomb.

That thing is gonna be a little too &quot;efficient&quot;.

Gotta love that the emoji system &quot;diffused&quot; Markus&#039; fork bomb tho!
 
    </content:encoded>

    <pubDate>Fri, 23 Mar 2018 02:28:09 +0100</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/7-guid.html#c958</guid>
    
</item>
<item>
    <title>Boi : #22: Processes with high and low priority</title>
    <link>https://www.refining-linux.org/archives/29-22-Processes-with-high-and-low-priority.html#c956</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/29-22-Processes-with-high-and-low-priority.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=29</wfw:comment>

    

    <author>nospam@example.com (Boi )</author>
    <content:encoded>
    Very nice
 
    </content:encoded>

    <pubDate>Sat, 27 Jan 2018 21:33:59 +0100</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/29-guid.html#c956</guid>
    
</item>
<item>
    <title>Bryan Bugyi: ZSH Gem #8: Hook function chpwd()</title>
    <link>https://www.refining-linux.org/archives/42-ZSH-Gem-8-Hook-function-chpwd.html#c954</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/42-ZSH-Gem-8-Hook-function-chpwd.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=42</wfw:comment>

    

    <author>nospam@example.com (Bryan Bugyi)</author>
    <content:encoded>
    I just finished writing a script that provides a safer and more convenient solution for  defining local aliases and functions (like you could use the .zsh_config method above for). If interested in this functionality, check it out: github://bbugyi200/LocalAlias
 
    </content:encoded>

    <pubDate>Sun, 07 Jan 2018 04:44:10 +0100</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/42-guid.html#c954</guid>
    
</item>
<item>
    <title>Tarun Elankath: ZSH Gem #20: Changing directories the pro's way</title>
    <link>https://www.refining-linux.org/archives/55-ZSH-Gem-20-Changing-directories-the-pros-way.html#c953</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/55-ZSH-Gem-20-Changing-directories-the-pros-way.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=55</wfw:comment>

    

    <author>nospam@example.com (Tarun Elankath)</author>
    <content:encoded>
    Even More Pro ways:

- Use  https://github.com/rupa/z
- Use  https://github.com/wting/autojump  
- Use https://github.com/junegunn/fzf
 
    </content:encoded>

    <pubDate>Wed, 08 Nov 2017 15:50:06 +0100</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/55-guid.html#c953</guid>
    
</item>
<item>
    <title>Janek Bevendorff: #20: Multi-line sed search and replace</title>
    <link>https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#c952</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=27</wfw:comment>

    

    <author>nospam@example.com (Janek Bevendorff)</author>
    <content:encoded>
    You might want to consider splitting it up into multiple commands and pipe them together.
 
    </content:encoded>

    <pubDate>Tue, 03 Oct 2017 16:58:45 +0200</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/27-guid.html#c952</guid>
    
</item>
<item>
    <title>NC: #20: Multi-line sed search and replace</title>
    <link>https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#c951</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=27</wfw:comment>

    

    <author>nospam@example.com (NC)</author>
    <content:encoded>
    How do I print a file, I want to first search for StartPattern1 and EndPattern1 with Matchpattern1 and print from startpattern1 and Endpattern1. Then I want to do same startPattern1 and Endpattern1 this time with Matchpattern2.
i was able to accomplish this by below

sed -n &#039;/interface dsl/h;/interface dsl/!H; /!/ {x;/dsl profile INTRO/p;}&#039; /home/ProfileChangeSelect/FILE

now i want to add &quot; dsl profile VALUE&quot; in addition to dsl profile INTRO

What is the syntax? THanks
 
    </content:encoded>

    <pubDate>Tue, 03 Oct 2017 16:21:22 +0200</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/27-guid.html#c951</guid>
    
</item>
<item>
    <title>clawoo: Performing push backups – Part 2: rsnapshot</title>
    <link>https://www.refining-linux.org/archives/66-Performing-push-backups-Part-2-rsnapshot.html#c950</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/66-Performing-push-backups-Part-2-rsnapshot.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=66</wfw:comment>

    

    <author>nospam@example.com (clawoo)</author>
    <content:encoded>
    Just a note, on Ubuntu 17.04 following the guide leads to a &quot;@ERROR: setgroups failed&quot; error. 

Calling 

setcap cap_net_bind_service,cap_setgid=+ep /usr/bin/rsync 

fixed it.
 
    </content:encoded>

    <pubDate>Mon, 02 Oct 2017 13:05:19 +0200</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/66-guid.html#c950</guid>
    
</item>
<item>
    <title>Janek Bevendorff: #13: Printable vim cheat sheets</title>
    <link>https://www.refining-linux.org/archives/20-13-Printable-vim-cheat-sheets.html#c948</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/20-13-Printable-vim-cheat-sheets.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=20</wfw:comment>

    

    <author>nospam@example.com (Janek Bevendorff)</author>
    <content:encoded>
    Done. Thanks!
 
    </content:encoded>

    <pubDate>Thu, 24 Aug 2017 21:13:58 +0200</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/20-guid.html#c948</guid>
    
</item>
<item>
    <title>Sreenadh: #13: Printable vim cheat sheets</title>
    <link>https://www.refining-linux.org/archives/20-13-Printable-vim-cheat-sheets.html#c947</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/20-13-Printable-vim-cheat-sheets.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=20</wfw:comment>

    

    <author>nospam@example.com (Sreenadh)</author>
    <content:encoded>
    Kindly update the link:
http://parker0phil.posterous.com/vim-cheat-sheet &gt;&gt; https://github.com/cadenceone/vimcheatsheet/raw/master/VIMCheatsheet.pdf
 
    </content:encoded>

    <pubDate>Thu, 24 Aug 2017 14:29:58 +0200</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/20-guid.html#c947</guid>
    
</item>
<item>
    <title>Janek Bevendorff: #20: Multi-line sed search and replace</title>
    <link>https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#c945</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=27</wfw:comment>

    

    <author>nospam@example.com (Janek Bevendorff)</author>
    <content:encoded>
    You could try it like this:

pre. sed -n &#039;1h; 1!H; ${ g; s/\(\)/\1TRUE\2/g; p }&#039;

(ignore the double escaped HTML tags, they should actually be &lt; and &gt;, not &amp;lt; and &amp;gt;)

However, I don&#039;t think, sed is the right tool for you. Replacing HTML or XML with regular expressions isn&#039;t really a thing (XML is not a regular language). For a few quick ad-hoc fixes, it might work, but if you really need to do some more (and guaranteed to be valid) changes, you should really use an XML parser. Remember, that the regular expression also won&#039;t match if the attributes are in the wrong order, the tag is not self-closing etc.
 
    </content:encoded>

    <pubDate>Fri, 07 Jul 2017 21:24:25 +0200</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/27-guid.html#c945</guid>
    
</item>
<item>
    <title>Basil: #20: Multi-line sed search and replace</title>
    <link>https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#c944</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=27</wfw:comment>

    

    <author>nospam@example.com (Basil)</author>
    <content:encoded>
    Hi Janek,

I need to replace 

with 

The new line character and tab spaces in the first search string causes the issues. Can you please guide me to replace it?
 
    </content:encoded>

    <pubDate>Fri, 07 Jul 2017 08:47:21 +0200</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/27-guid.html#c944</guid>
    
</item>
<item>
    <title>J.P.Paillet: #20: Multi-line sed search and replace</title>
    <link>https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#c942</link>
            <category></category>
    
    <comments>https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#comments</comments>
    <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=27</wfw:comment>

    

    <author>nospam@example.com (J.P.Paillet)</author>
    <content:encoded>
    Thank you very much, this is a very clear explanation.
For the first time in years, I could use sed instead of awk for simple cases.
What follows could help me to automate updates on our DNS server&#039;s config files.
 sed -e &#039;/^@[   ]*IN[   ]*SOA/N;s/^\(@.*\n[^0-9]*\)[0-9]*/\1&#039;$(date +&quot;%Y%m%d%H&quot;)&#039;/&#039;
 
    </content:encoded>

    <pubDate>Fri, 07 Apr 2017 14:47:51 +0200</pubDate>
    <guid isPermaLink="false">https://www.refining-linux.org/archives/27-guid.html#c942</guid>
    
</item>

</channel>
</rss>
