<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to dk-lines</title><link>https://sourceforge.net/p/dktools/wiki/dk-lines/</link><description>Recent changes to dk-lines</description><atom:link href="https://sourceforge.net/p/dktools/wiki/dk-lines/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 21 Dec 2023 18:27:56 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/dktools/wiki/dk-lines/feed" rel="self" type="application/rss+xml"/><item><title>dk-lines modified by Dirk Krause</title><link>https://sourceforge.net/p/dktools/wiki/dk-lines/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -3,7 +3,6 @@
 
 &lt;a href="../dk-sort%20manual/" title="dk-sort manual"&gt;← Previous&lt;/a&gt;
 &lt;a href="../Home/" title="Home"&gt;↑ Home&lt;/a&gt;
-&lt;a href="../Home/#programs" title="Programs list"&gt;↑ Programs&lt;/a&gt;
 &lt;a href="../dk-lines%20manual/" title="dk-lines manual"&gt;→ Next&lt;/a&gt;
 
 
@@ -106,7 +105,6 @@
 
 &lt;a href="../dk-sort%20manual/" title="dk-sort manual"&gt;← Previous&lt;/a&gt;
 &lt;a href="../Home/" title="Home"&gt;↑ Home&lt;/a&gt;
-&lt;a href="../Home/#programs" title="Programs list"&gt;↑ Programs&lt;/a&gt;
 &lt;a href="../dk-lines%20manual/" title="dk-lines manual"&gt;→ Next&lt;/a&gt;
 
 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dirk Krause</dc:creator><pubDate>Thu, 21 Dec 2023 18:27:56 -0000</pubDate><guid>https://sourceforge.netcc2d03be47d0cfb749e33ef53a694fbbd6b26567</guid></item><item><title>dk-lines modified by Dirk Krause</title><link>https://sourceforge.net/p/dktools/wiki/dk-lines/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,2 +1,113 @@
+
+
+
+
+
+
+
+
+
+&lt;table width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: left;"&gt;&lt;a href="../dk-sort%20manual/" title="dk-sort manual"&gt;← Previous&lt;/a&gt;&lt;/td&gt;&lt;td style="text-align: center;"&gt;&lt;a href="../Home/" title="Home"&gt;↑ Home&lt;/a&gt;&lt;/td&gt;&lt;td style="text-align: center;"&gt;&lt;a href="../Home/#programs" title="Programs list"&gt;↑ Programs&lt;/a&gt;&lt;/td&gt;&lt;td style="text-align: right;"&gt;&lt;a href="../dk-lines%20manual/" title="dk-lines manual"&gt;→ Next&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
+
+#  dk-lines — Select text lines


+## Description
+
+The program extracts specified lines from a text obtained from the specified files or standard input. It is mainly intended for the Windows platforms, as I do not know about an UTF-16 aware version of "head" or "tail" programs for Windows.
+
+There are 2 processing stages, both stages are optional.
+
+**Stage 1: Text at beginning of line.**
+In the first stage the beginning of each text line is compared against a start text and/or an end text. Lines from within the range (including the borders) are transferred to stage 2. If only start or end text is specified, a simple comparison is used instead of the range check.
+
+**Stage 2: Line numbers.**
+The second stage selects lines from stage 1 output by line numbers.  A start line number and/or an end line number can be specified.  Positive line numbers are counted from the first line (line number 1) forwards. Negative line numbers are counted from the final line (line number -1) backwards.
+
+---
+
+## Examples
+
+###    Find files modified in a specified range of dates
+
+To find files modified in a specified range of dates:
+
+~~~
+dk-ls -pmn -tf -r | dk-lines --from=2017-11-18 --to=2017-11-19
+~~~
+
+Program|Option|Purpose
+-------|------|-------
+dk-ls||List files.
+|-pmn|Configure output columns:&lt;ul&gt;&lt;li&gt;m Modification timestamp&lt;/li&gt;&lt;li&gt;n File name&lt;/li&gt;&lt;/ul&gt;
+|-tf|Restrict output to files (non-directory items).
+|-r|Recursive listing including all subdirectories.
+dk-lines||Extract specific lines from text stream.
+|--from=2017-11-18&lt;br/&gt;--to=2017-11-19|Only those lines beginning with text from (inclusive) "2017-11-18" to (inclusive) "2017-11-19".
+
+###    Find files modified today
+
+To find files modified today:
+
+~~~
+dk-ls -pmn -tf -r | dk-lines --today
+~~~
+
+Option|Purpose
+------|-------
+--today|Extract only thos lines beginning with *yyyy-mm-dd* (current date).
+
+###    Find 10 newest files (last modified)
+
+To find 10 newest files (last modified):
+
+~~~
+dk-ls -pmn -tf -r | dk-sort | dk-lines -l -10
+~~~
+
+Option|Purpose
+------|-------
+-l -10|Begin extraction at line 10 before the end.
+
+###    Find 10 oldest files (by modification date)
+
+To find 10 oldest files (by modification date):
+
+~~~
+dk-ls -pmn -tf -r | dk-sort | dk-lines -l 1/10
+~~~
+
+Option|Purpose
+------|-------
+-l 1/10|Extract line number 1 to 10.
+
+###    Show file contents, omit first 3 and final 2 lines
+
+To show file x.txt contents, omit first 3 and final 2 lines:
+
+~~~
+dk-lines -l 4/-3 x.txt
+~~~
+
+Option|Purpose
+------|-------
+-l 4/-3|Start at line 4 from the beginning, stop at line 3 before the end.
+
+---
+
+## Manual
+
+See the [dk-lines manual] for the full documentation of the program.
+
+---
+
+
+
+
+
+
+
+
+
+
+&lt;table width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: left;"&gt;&lt;a href="../dk-sort%20manual/" title="dk-sort manual"&gt;← Previous&lt;/a&gt;&lt;/td&gt;&lt;td style="text-align: center;"&gt;&lt;a href="../Home/" title="Home"&gt;↑ Home&lt;/a&gt;&lt;/td&gt;&lt;td style="text-align: center;"&gt;&lt;a href="../Home/#programs" title="Programs list"&gt;↑ Programs&lt;/a&gt;&lt;/td&gt;&lt;td style="text-align: right;"&gt;&lt;a href="../dk-lines%20manual/" title="dk-lines manual"&gt;→ Next&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dirk Krause</dc:creator><pubDate>Fri, 28 Jul 2023 19:57:24 -0000</pubDate><guid>https://sourceforge.net2eb74f0adc9c4515ebcc40b11ffc6ed0decb6bb8</guid></item><item><title>dk-lines modified by Dirk Krause</title><link>https://sourceforge.net/p/dktools/wiki/dk-lines/</link><description/><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dirk Krause</dc:creator><pubDate>Fri, 28 Jul 2023 18:44:33 -0000</pubDate><guid>https://sourceforge.netc7c509445bc102c017554e0322fff5098e12a45d</guid></item></channel></rss>