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

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    
    <link href="https://www.refining-linux.org/feeds/comments.atom10/" rel="self" title="Refining Linux - Comments" type="application/atom+xml" />
    <link href="https://www.refining-linux.org/"                        rel="alternate"    title="Refining Linux - Comments" type="text/html" />
    <link href="https://www.refining-linux.org/rss.php?version=2.0"     rel="alternate"    title="Refining Linux - Comments" type="application/rss+xml" />
    <link rel="stylesheet" href="" type="text/css" />
    <title type="html">Refining Linux - Comments</title>
    <subtitle type="html">Refining Linux - Take your Linux to the next level</subtitle>
    <icon>https://www.refining-linux.org/templates/reflinux-2012/img/design/tux_painting-fs8.png</icon>
    <id>https://www.refining-linux.org/</id>
    <updated>2026-05-09T23:34:33Z</updated>
    <generator uri="http://www.s9y.org/" version="2.1.2">Serendipity 2.1.2 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="https://www.refining-linux.org/archives/53-ZSH-Gem-19-Global-aliases.html#c1003" rel="alternate" title="alivefromupstairs: ZSH Gem #19: Global aliases" />
        <author>
            <name>alivefromupstairs</name>
                    </author>
    
        <published>2019-12-27T22:58:24Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=53</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/53-guid.html#c1003</id>
        <title type="html">alivefromupstairs: ZSH Gem #19: Global aliases</title>
        <content type="html">
            <![CDATA[Global aliases do not tab complete for me. Is this the case for everyone or just on my end?
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/42-ZSH-Gem-8-Hook-function-chpwd.html#c994" rel="alternate" title="Lucius: ZSH Gem #8: Hook function chpwd()" />
        <author>
            <name>Lucius</name>
                    </author>
    
        <published>2019-05-31T04:51:01Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=42</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/42-guid.html#c994</id>
        <title type="html">Lucius: ZSH Gem #8: Hook function chpwd()</title>
        <content type="html">
            <![CDATA[The last section on the parameter array is really helpful.
Thanks.
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/66-Performing-push-backups-Part-2-rsnapshot.html#c959" rel="alternate" title="Chit Ko Ko Win: Performing push backups – Part 2: rsnapshot" />
        <author>
            <name>Chit Ko Ko Win</name>
                    </author>
    
        <published>2018-05-23T03:48:35Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=66</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/66-guid.html#c959</id>
        <title type="html">Chit Ko Ko Win: Performing push backups – Part 2: rsnapshot</title>
        <content type="html">
            <![CDATA[Great Article
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/7-Dr.-Frankenlinux-or-how-to-create-zombie-processes.html#c958" rel="alternate" title="Ouroboros: Dr. Frankenlinux or how to create zombie processes" />
        <author>
            <name>Ouroboros</name>
                    </author>
    
        <published>2018-03-23T01:28:09Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=7</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/7-guid.html#c958</id>
        <title type="html">Ouroboros: Dr. Frankenlinux or how to create zombie processes</title>
        <content type="html">
            <![CDATA["just try this bash command..." says the guy who posts a fork bomb.

That thing is gonna be a little too "efficient".

Gotta love that the emoji system "diffused" Markus' fork bomb tho!
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/29-22-Processes-with-high-and-low-priority.html#c956" rel="alternate" title="Boi : #22: Processes with high and low priority" />
        <author>
            <name>Boi </name>
                    </author>
    
        <published>2018-01-27T20:33:59Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=29</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/29-guid.html#c956</id>
        <title type="html">Boi : #22: Processes with high and low priority</title>
        <content type="html">
            <![CDATA[Very nice
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/42-ZSH-Gem-8-Hook-function-chpwd.html#c954" rel="alternate" title="Bryan Bugyi: ZSH Gem #8: Hook function chpwd()" />
        <author>
            <name>Bryan Bugyi</name>
                    </author>
    
        <published>2018-01-07T03:44:10Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=42</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/42-guid.html#c954</id>
        <title type="html">Bryan Bugyi: ZSH Gem #8: Hook function chpwd()</title>
        <content type="html">
            <![CDATA[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>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/55-ZSH-Gem-20-Changing-directories-the-pros-way.html#c953" rel="alternate" title="Tarun Elankath: ZSH Gem #20: Changing directories the pro's way" />
        <author>
            <name>Tarun Elankath</name>
                    </author>
    
        <published>2017-11-08T14:50:06Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=55</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/55-guid.html#c953</id>
        <title type="html">Tarun Elankath: ZSH Gem #20: Changing directories the pro's way</title>
        <content type="html">
            <![CDATA[Even More Pro ways:

- Use  https://github.com/rupa/z
- Use  https://github.com/wting/autojump  
- Use https://github.com/junegunn/fzf
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#c952" rel="alternate" title="Janek Bevendorff: #20: Multi-line sed search and replace" />
        <author>
            <name>Janek Bevendorff</name>
                    </author>
    
        <published>2017-10-03T14:58:45Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=27</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/27-guid.html#c952</id>
        <title type="html">Janek Bevendorff: #20: Multi-line sed search and replace</title>
        <content type="html">
            <![CDATA[You might want to consider splitting it up into multiple commands and pipe them together.
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#c951" rel="alternate" title="NC: #20: Multi-line sed search and replace" />
        <author>
            <name>NC</name>
                    </author>
    
        <published>2017-10-03T14:21:22Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=27</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/27-guid.html#c951</id>
        <title type="html">NC: #20: Multi-line sed search and replace</title>
        <content type="html">
            <![CDATA[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 '/interface dsl/h;/interface dsl/!H; /!/ {x;/dsl profile INTRO/p;}' /home/ProfileChangeSelect/FILE

now i want to add " dsl profile VALUE" in addition to dsl profile INTRO

What is the syntax? THanks
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/66-Performing-push-backups-Part-2-rsnapshot.html#c950" rel="alternate" title="clawoo: Performing push backups – Part 2: rsnapshot" />
        <author>
            <name>clawoo</name>
                    </author>
    
        <published>2017-10-02T11:05:19Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=66</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/66-guid.html#c950</id>
        <title type="html">clawoo: Performing push backups – Part 2: rsnapshot</title>
        <content type="html">
            <![CDATA[Just a note, on Ubuntu 17.04 following the guide leads to a "@ERROR: setgroups failed" error. 

Calling 

setcap cap_net_bind_service,cap_setgid=+ep /usr/bin/rsync 

fixed it.
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/20-13-Printable-vim-cheat-sheets.html#c948" rel="alternate" title="Janek Bevendorff: #13: Printable vim cheat sheets" />
        <author>
            <name>Janek Bevendorff</name>
                    </author>
    
        <published>2017-08-24T19:13:58Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=20</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/20-guid.html#c948</id>
        <title type="html">Janek Bevendorff: #13: Printable vim cheat sheets</title>
        <content type="html">
            <![CDATA[Done. Thanks!
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/20-13-Printable-vim-cheat-sheets.html#c947" rel="alternate" title="Sreenadh: #13: Printable vim cheat sheets" />
        <author>
            <name>Sreenadh</name>
                    </author>
    
        <published>2017-08-24T12:29:58Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=20</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/20-guid.html#c947</id>
        <title type="html">Sreenadh: #13: Printable vim cheat sheets</title>
        <content type="html">
            <![CDATA[Kindly update the link:
http://parker0phil.posterous.com/vim-cheat-sheet >> https://github.com/cadenceone/vimcheatsheet/raw/master/VIMCheatsheet.pdf
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#c945" rel="alternate" title="Janek Bevendorff: #20: Multi-line sed search and replace" />
        <author>
            <name>Janek Bevendorff</name>
                    </author>
    
        <published>2017-07-07T19:24:25Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=27</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/27-guid.html#c945</id>
        <title type="html">Janek Bevendorff: #20: Multi-line sed search and replace</title>
        <content type="html">
            <![CDATA[You could try it like this:

pre. sed -n '1h; 1!H; ${ g; s/\(\)/\1TRUE\2/g; p }'

(ignore the double escaped HTML tags, they should actually be < and >, not &lt; and &gt;)

However, I don't think, sed is the right tool for you. Replacing HTML or XML with regular expressions isn'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't match if the attributes are in the wrong order, the tag is not self-closing etc.
 ]]>
        </content>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#c944" rel="alternate" title="Basil: #20: Multi-line sed search and replace" />
        <author>
            <name>Basil</name>
                    </author>
    
        <published>2017-07-07T06:47:21Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=27</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/27-guid.html#c944</id>
        <title type="html">Basil: #20: Multi-line sed search and replace</title>
        <content type="html">
            <![CDATA[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>
        
    </entry>
    <entry>
        <link href="https://www.refining-linux.org/archives/27-20-Multi-line-sed-search-and-replace.html#c942" rel="alternate" title="J.P.Paillet: #20: Multi-line sed search and replace" />
        <author>
            <name>J.P.Paillet</name>
                    </author>
    
        <published>2017-04-07T12:47:51Z</published>
        <updated>2026-05-09T23:34:33Z</updated>
        <wfw:comment>https://www.refining-linux.org/wfwcomment.php?cid=27</wfw:comment>
    
    
            <category scheme="https://www.refining-linux.org/categories/0-unknown" label="" term="" />
    
        <id>https://www.refining-linux.org/archives/27-guid.html#c942</id>
        <title type="html">J.P.Paillet: #20: Multi-line sed search and replace</title>
        <content type="html">
            <![CDATA[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's config files.
 sed -e '/^@[   ]*IN[   ]*SOA/N;s/^\(@.*\n[^0-9]*\)[0-9]*/\1'$(date +"%Y%m%d%H")'/'
 ]]>
        </content>
        
    </entry>

</feed>