From 139058b9b76437aa9f0f7ddf7a7b20b879a78d37 Mon Sep 17 00:00:00 2001 From: Dylan Lom Date: Fri, 26 Feb 2021 13:07:29 +1100 Subject: [PATCH] Rename lines back to line I think it's easier to remember --- doc/{lines.1 => line.1} | 24 ++++++++++++++++-------- src/{lines.c => line.c} | 0 2 files changed, 16 insertions(+), 8 deletions(-) rename doc/{lines.1 => line.1} (50%) rename src/{lines.c => line.c} (100%) diff --git a/doc/lines.1 b/doc/line.1 similarity index 50% rename from doc/lines.1 rename to doc/line.1 index 5aa161f..b2071e1 100644 --- a/doc/lines.1 +++ b/doc/line.1 @@ -1,27 +1,35 @@ -.TH LINES 1 +.TH LINE 1 .SH NAME -line \- extract lines from input +line \- extract line(s) from input .SH SYNOPSIS -.B lines +.B line .IR [LINES...] .SH DESCRIPTION -.B lines +.B line extracts one or more lines from stdin. If multiple lines are provided, they will be sorted numerically. If the same line is specified twice, it will only be extracted once. .SH EXAMPLES -Get the 3rd line from the file lines.1 +Get the 3rd line from the file line.1 .PP .nf .RS -lines 3 < lines.1 +line 3 < line.1 .RE .fi .PP -Get the 3rd, 4th and 5th lines from the file lines.1 +Get the 3rd and 4th most recent files in a directory .PP .nf .RS -lines 3 5 4 < lines.1 +ls -1t | line 3 4 +.RE +.fi +.PP +Get the 5th-10th lines from the file line.1 +.PP +.nf +.RS +line $(seq 5 10) < line.1 .RE .fi diff --git a/src/lines.c b/src/line.c similarity index 100% rename from src/lines.c rename to src/line.c