summaryrefslogtreecommitdiff
path: root/support/dktools/dktools/en/dk-lines.txt
diff options
context:
space:
mode:
Diffstat (limited to 'support/dktools/dktools/en/dk-lines.txt')
-rw-r--r--support/dktools/dktools/en/dk-lines.txt121
1 files changed, 0 insertions, 121 deletions
diff --git a/support/dktools/dktools/en/dk-lines.txt b/support/dktools/dktools/en/dk-lines.txt
deleted file mode 100644
index 80c86289d1..0000000000
--- a/support/dktools/dktools/en/dk-lines.txt
+++ /dev/null
@@ -1,121 +0,0 @@
-
-NAME
-
-dk-lines - Extract lines from text
-
-SYNOPSIS
-
-dk-lines [<option(s)>] [<file(s)>]
-
-DESCRIPTION
-
-The program extracts specified lines from a text obtained from the specified
-files or standard input.
-
-There are 2 processing stages, both stages are optional.
-
-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.
-
-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.
-
-OPTIONS
-
--f <starttext>
---from=<starttext>
- Specify the start text for stage 1.
-
--t <endtext>
---to=<endtext>
- Specify the end text for stage 1.
-
---today
- Specify the current date in YYYY-MM-DD notation for start and end
- text unless specified using -t or -f.
- You can not use --today if both -t and -f are specified.
-
--l <range>
---lines=<range>
- Specify the line number range for stage 2 in one of the following
- notations:
- s Specify just start line number.
- s/e Specify start and end line number.
- /e Specify just end line number.
- The start line number is the first line to print.
- The end line number is the final line to print.
-
--o
---one-stream
- For multiple input files, group the stage 1 results from all files
- before applying stage 2.
- Without this option the line number range is applied to each
- file individually.
-
--i <encoding>
---input-encoding=<encoding>
- Expected input encoding. A byte order marker (BOM) at the beginning
- of the file overwrites the encoding specified here.
-
---line-size=<size>
- Choose a line buffer size different from the default (4096 bytes).
-
--v
---verbose
- Produce verbose diagnostics.
-
-EXIT STATUS
-
-0 on success, all other values indicate errors.
-
-EXAMPLES
-
-Find files modified in a specified range of dates:
-
- dk-ls -pmn -tf -r | dk-lines --from=2017-11-18 --to=2017-11-19
-
-Find files modified today:
-
- dk-ls -pmn -tf -r | dk-lines --today
-
-Find 10 newest files (last modified):
-
- dk-ls -pmn -tf -r | dk-sort | dk-lines -l -10
-
-Find 10 oldest files (by modification date):
-
- dk-ls -pmn -tf -r | dk-sort | dk-lines -l 1/10
-
-Show contents of file "x.txt", omit first 3 and final 2 lines:
-
- dk-lines -l 4/-3 x.txt
-
-RESTRICTIONS
-
-On Windows the file name length is restricted to _MAX_PATH (260) characters
-if the file name contains a wildcard (* or ? character).
-
-AUTHOR
-
-Dirk Krause
-
-HISTORY
-
-The program was added in version 4.10.0.
-
-COPYRIGHT AND LICENSE
-
-Run
- dk-lines --license
-to see license information.
-
-SEE ALSO
-
-http://sourceforge.net/p/dktools/wiki/Home/
-