Groups | Search | Server Info | Login | Register


Groups > comp.os.linux.misc > #77587

Re: My 2 favorite tools for reading Linux manual pages the easy way

Message-ID <6918f114@news.ausics.net> (permalink)
From not@telling.you.invalid (Computer Nerd Kev)
Subject Re: My 2 favorite tools for reading Linux manual pages the easy way
Newsgroups comp.os.linux.misc
References <10f34ng$1pnvq$1@dont-email.me> <sk4hulx42p.ln2@Telcontar.valinor> <10f5dib$2crs6$2@dont-email.me> <10f5e30$2d31u$1@dont-email.me> <8ruhulx88g.ln2@Telcontar.valinor> <69179e3a@news.ausics.net> <10f8opa$385vs$7@dont-email.me>
User-Agent tin/2.6.5-20250707 ("Helmsdale") (Linux/2.4.31 (i586))
NNTP-Posting-Host news.ausics.net
Date 16 Nov 2025 07:31:00 +1000
Organization Ausics - https://newsgroups.ausics.net
Lines 28
X-Complaints abuse@ausics.net
Path csiph.com!news.bbs.nz!news.ausics.net!not-for-mail
Xref csiph.com comp.os.linux.misc:77587

Show key headers only | View raw


Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On 15 Nov 2025 07:25:14 +1000, Computer Nerd Kev wrote:
>> Typing the regex "^[[:blank:]]*-t " just to find the doc for the -t
>> argument in Ffmpeg's man page, for example, without getting all
>> other uses of "-t" in the text, is a bit of a mouthful.
> 
> Just tried this, and "\s+-t\s+" worked for me.

I didn't know about "\s", but you do need the '^' at the start or
it picks up other uses of "-t". Those only happen after the
definition of "-t" but that's not the case for other arguments like
"-r" which are used before the definition.

But I see it doesn't work for "-r" anyway because that's defined
with square brakets for the optional stream specifier:

       -r[:stream_specifier] fps (input/output,per-stream)

If the regex parser supports OR with "\|" I think you could handle
that without picking up likely uses of "-r" elsewhere in the text,
but it's not working for me. It always takes me about ten attempts
to get a regex that complex to work though. In any case you need
something smarter that looks at the formatting properly, and
ideally makes an index that can be browsed interactively.

-- 
__          __
#_ < |\| |< _#

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-12 23:20 +0000
  Re: My 2 favorite tools for reading Linux manual pages the easy way Nuno Silva <nunojsilva@invalid.invalid> - 2025-11-12 23:51 +0000
    Re: My 2 favorite tools for reading Linux manual pages the easy way ram@zedat.fu-berlin.de (Stefan Ram) - 2025-11-13 11:01 +0000
      Re: My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-13 20:05 +0000
  Re: My 2 favorite tools for reading Linux manual pages the easy way Chris Ahlstrom <OFeem1987@teleworm.us> - 2025-11-13 08:29 -0500
    Re: My 2 favorite tools for reading Linux manual pages the easy way vallor <vallor@vallor.earth> - 2025-11-13 14:46 +0000
      Re: My 2 favorite tools for reading Linux manual pages the easy way Chris Ahlstrom <OFeem1987@teleworm.us> - 2025-11-13 11:35 -0500
  Re: My 2 favorite tools for reading Linux manual pages the easy way "Carlos E.R." <robin_listas@es.invalid> - 2025-11-13 14:56 +0100
    Re: My 2 favorite tools for reading Linux manual pages the easy way vallor <vallor@vallor.earth> - 2025-11-13 14:54 +0000
      Re: My 2 favorite tools for reading Linux manual pages the easy way "Carlos E.R." <robin_listas@es.invalid> - 2025-11-13 23:14 +0100
    Re: My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-13 20:03 +0000
      Re: My 2 favorite tools for reading Linux manual pages the easy way vallor <vallor@vallor.earth> - 2025-11-13 20:12 +0000
        Re: My 2 favorite tools for reading Linux manual pages the easy way "Carlos E.R." <robin_listas@es.invalid> - 2025-11-13 22:23 +0100
          Re: My 2 favorite tools for reading Linux manual pages the easy way not@telling.you.invalid (Computer Nerd Kev) - 2025-11-15 07:25 +1000
            Re: My 2 favorite tools for reading Linux manual pages the easy way "Carlos E.R." <robin_listas@es.invalid> - 2025-11-14 22:58 +0100
              Re: My 2 favorite tools for reading Linux manual pages the easy way ram@zedat.fu-berlin.de (Stefan Ram) - 2025-11-14 22:12 +0000
                Re: My 2 favorite tools for reading Linux manual pages the easy way "Carlos E.R." <robin_listas@es.invalid> - 2025-11-15 00:00 +0100
                Re: My 2 favorite tools for reading Linux manual pages the easy way ram@zedat.fu-berlin.de (Stefan Ram) - 2025-11-14 23:27 +0000
                fmpeg drift (1) "Carlos E.R." <robin_listas@es.invalid> - 2025-11-16 00:29 +0100
                Re: fmpeg drift (1) Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-16 00:39 +0000
                Re: fmpeg drift (1) "Carlos E.R." <robin_listas@es.invalid> - 2025-11-16 03:00 +0100
                Re: fmpeg drift (1) Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-16 02:33 +0000
                Re: fmpeg drift (1) "Carlos E.R." <robin_listas@es.invalid> - 2025-11-16 15:03 +0100
                Re: fmpeg drift (1) Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-16 21:25 +0000
                Re: fmpeg drift (1) "Carlos E.R." <robin_listas@es.invalid> - 2025-11-17 12:48 +0100
                Re: fmpeg drift (1) Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-18 01:00 +0000
                Re: fmpeg drift (1) "Carlos E.R." <robin_listas@es.invalid> - 2025-11-18 07:22 +0100
                fmpeg drift (2) "Carlos E.R." <robin_listas@es.invalid> - 2025-11-16 00:34 +0100
                Re: fmpeg drift (2) ram@zedat.fu-berlin.de (Stefan Ram) - 2025-11-16 13:34 +0000
                Re: fmpeg drift (2) "Carlos E.R." <robin_listas@es.invalid> - 2025-11-16 15:19 +0100
                Re: fmpeg drift (2) - solved? "Carlos E.R." <robin_listas@es.invalid> - 2025-11-16 23:56 +0100
                Re: fmpeg drift (2) - solved? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-17 00:49 +0000
                Re: fmpeg drift (2) - solved? "Carlos E.R." <robin_listas@es.invalid> - 2025-11-17 03:17 +0100
                Re: fmpeg drift (2) - solved? Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-17 02:39 +0000
                Re: fmpeg drift (2) Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-16 21:21 +0000
                Re: My 2 favorite tools for reading Linux manual pages the easy way Joerg Walther <joerg.walther@magenta.de> - 2025-11-15 09:50 +0100
                Re: My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-15 22:09 +0000
                Re: My 2 favorite tools for reading Linux manual pages the easy way "Carlos E.R." <robin_listas@es.invalid> - 2025-11-16 00:00 +0100
                Re: My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-16 00:32 +0000
                Re: My 2 favorite tools for reading Linux manual pages the easy way "Carlos E.R." <robin_listas@es.invalid> - 2025-11-16 03:01 +0100
                Re: My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-16 02:33 +0000
                Re: My 2 favorite tools for reading Linux manual pages the easy way "Carlos E.R." <robin_listas@es.invalid> - 2025-11-16 23:09 +0100
                Re: My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-16 22:41 +0000
                Re: My 2 favorite tools for reading Linux manual pages the easy way ram@zedat.fu-berlin.de (Stefan Ram) - 2025-11-16 22:45 +0000
                Re: My 2 favorite tools for reading Linux manual pages the easy way Joerg Walther <joerg.walther@magenta.de> - 2025-11-16 11:32 +0100
                Re: My 2 favorite tools for reading Linux manual pages the easy way "Carlos E.R." <robin_listas@es.invalid> - 2025-11-16 00:26 +0100
                Re: My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-15 02:35 +0000
                Re: My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-15 02:37 +0000
            Re: My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-15 02:33 +0000
              Re: My 2 favorite tools for reading Linux manual pages the easy way not@telling.you.invalid (Computer Nerd Kev) - 2025-11-16 07:31 +1000
                Re: My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-15 22:08 +0000
                Re: My 2 favorite tools for reading Linux manual pages the easy way not@telling.you.invalid (Computer Nerd Kev) - 2025-11-17 07:00 +1000
  Re: My 2 favorite tools for reading Linux manual pages the easy way candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2025-11-13 18:50 +0000
    Re: My 2 favorite tools for reading Linux manual pages the easy way ram@zedat.fu-berlin.de (Stefan Ram) - 2025-11-13 19:20 +0000
      Re: My 2 favorite tools for reading Linux manual pages the easy way Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-11-13 20:12 +0000
        Re: My 2 favorite tools for reading Linux manual pages the easy way Nuno Silva <nunojsilva@invalid.invalid> - 2025-11-13 23:32 +0000

csiph-web