<?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:atom="http://www.w3.org/2005/Atom"
				  >
<channel>
<atom:link rel="self"  type="application/rss+xml"  href="http://rulinux.net/rss_from_sect_4_subsect_1_thread_34915"  />
<title>rulinux.net - Форум - General - Выбрать каждую N-ю строку файла</title>
<link>http://rulinux.net/</link>
<description><![CDATA[Портал о GNU/Linux и не только]]></description>
<image><title>rulinux.net - Форум - General - Выбрать каждую N-ю строку файла</title>
<link>http://rulinux.net/</link>
<url>http://rulinux.net/rss_icon.png</url>
</image>
<item>
<title>Re:Выбрать каждую N-ю строку файла</title>
<link>https://rulinux.net/message.php?newsid=34915&amp;page=1#110056</link>
<guid>https://rulinux.net/message.php?newsid=34915&amp;page=1#110056</guid>
<pubDate>Tue, 11 Oct 2011 18:49:45 +0400</pubDate>
<description><![CDATA[<p><fieldset><legend>bash</legend><code><br />
$ &nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;a<span style="color: #000099; font-weight: bold;">n</span>b<span style="color: #000099; font-weight: bold;">n</span>c<span style="color: #000099; font-weight: bold;">n</span>d<span style="color: #000099; font-weight: bold;">n</span>e<span style="color: #000099; font-weight: bold;">n</span>f<span style="color: #000099; font-weight: bold;">n</span>g<span style="color: #000099; font-weight: bold;">n</span>h&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">'0~3p'</span><br />
c<br />
f<br />
&nbsp;</code></fieldset>

Каждой &quot;n&quot; в строке выводимой echo предшествует обратный слеш, разметка съела.</p>]]></description>
</item>
<item>
<title>Re:Выбрать каждую N-ю строку файла</title>
<link>https://rulinux.net/message.php?newsid=34915&amp;page=1#110055</link>
<guid>https://rulinux.net/message.php?newsid=34915&amp;page=1#110055</guid>
<pubDate>Tue, 11 Oct 2011 18:49:18 +0400</pubDate>
<description><![CDATA[<p>Для каждой второй, например:<br><br>sed -n '0~2p' /path/to/file<br><br></p>]]></description>
</item>
<item>
<title>Выбрать каждую N-ю строку файла</title>
<link>https://rulinux.net/message.php?newsid=34915&amp;page=1#110052</link>
<guid>https://rulinux.net/message.php?newsid=34915&amp;page=1#110052</guid>
<pubDate>Tue, 11 Oct 2011 18:41:24 +0400</pubDate>
<description><![CDATA[<p>Как? grep/sed/awk/sh приветстуются.</p>]]></description>
</item>
</channel>
</rss>