<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Archives des Sed - Xavki</title>
	<atom:link href="https://xavki.blog/category/sed/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Open your Sources..</description>
	<lastBuildDate>Tue, 24 Jul 2018 11:46:01 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>[Sed] : ajouter une ligne vide avant et après chaque ligne de commentaires</title>
		<link>https://xavki.blog/sed-ajouter-une-ligne-vide-avant-et-apres-chaque-ligne-de-commentaires/</link>
		
		<dc:creator><![CDATA[xavki]]></dc:creator>
		<pubDate>Tue, 24 Jul 2018 11:46:01 +0000</pubDate>
				<category><![CDATA[Sed]]></category>
		<guid isPermaLink="false">https://xavki.wordpress.com/?p=198</guid>

					<description><![CDATA[<p><img width="1880" height="1261" src="https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719.jpeg" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" fetchpriority="high" srcset="https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719.jpeg 1880w, https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719-300x201.jpeg 300w, https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719-768x515.jpeg 768w, https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719-1024x687.jpeg 1024w, https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719-1568x1052.jpeg 1568w" sizes="(max-width: 1880px) 100vw, 1880px" />Sed est un bonne outil que l&#8217;on limite parfois à des actions basiques. Mais qu&#8217;est-ce qu&#8217;il fait bien ces actions &#8220;basiques&#8221;. Aujourd&#8217;hui, je vous propose un truc tout simple pour rendre vos scripts plus lisible : ajouter un espace avant... <a href="https://xavki.blog/sed-ajouter-une-ligne-vide-avant-et-apres-chaque-ligne-de-commentaires/" class="suite"><i class="fal fa-long-arrow-right"></i></a></p>
<p>L’article <a href="https://xavki.blog/sed-ajouter-une-ligne-vide-avant-et-apres-chaque-ligne-de-commentaires/">[Sed] : ajouter une ligne vide avant et après chaque ligne de commentaires</a> est apparu en premier sur <a href="https://xavki.blog">Xavki</a>.</p>
]]></description>
										<content:encoded><![CDATA[<img width="1880" height="1261" src="https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719.jpeg" class="attachment- size- wp-post-image" alt="" style="float:left; margin:0 15px 15px 0;" decoding="async" srcset="https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719.jpeg 1880w, https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719-300x201.jpeg 300w, https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719-768x515.jpeg 768w, https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719-1024x687.jpeg 1024w, https://xavki.blog/wp-content/uploads/2018/07/pexels-photo-997719-1568x1052.jpeg 1568w" sizes="(max-width: 1880px) 100vw, 1880px" /><p>Sed est un bonne outil que l&#8217;on limite parfois à des actions basiques. Mais qu&#8217;est-ce qu&#8217;il fait bien ces actions &#8220;basiques&#8221;. Aujourd&#8217;hui, je vous propose un truc tout simple pour rendre vos scripts plus lisible : ajouter un espace avant et après chaque ligne de commentaire.</p>
<p>Pour cela il suffit de faire :</p>
<pre>
cat monfichier.sh | sed '/#/{x;p;x;G;}'
</pre>
<p>Plus généralement pour ajouter une ligne avant et après une ligne contenant un pattern :</p>
<pre>
sed '/regex/{x;p;x;G;}'
</pre>
<p>Facile non ? et pourtant tellement efficace ce bon vieux sed.</p>
<p>L’article <a href="https://xavki.blog/sed-ajouter-une-ligne-vide-avant-et-apres-chaque-ligne-de-commentaires/">[Sed] : ajouter une ligne vide avant et après chaque ligne de commentaires</a> est apparu en premier sur <a href="https://xavki.blog">Xavki</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
