# HG changeset patch # User Andreas Nolda # Date 1699095211 -3600 # Sat Nov 04 11:53:31 2023 +0100 # Node ID cca280ec68d18441639791d0118c3f47a1496cce # Parent 6c975500516a9b75f519d2223d3a295e1e44217c update URLs in README.md diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -12,9 +12,6 @@ * [blessings](https://pypi.org/project/blessings/) * [lxml](https://pypi.org/project/lxml/) -The lxml package internally calls the -[libxml2 and libxslt C libraries](http://xmlsoft.org). - On Debian-based systems, the prerequisites can be installed as follows: sudo apt-get install python3-blessings python3-lxml @@ -46,19 +43,19 @@ Normally, `xgrep.py` outputs the matching parts of the XML files together with their file names and the XPath expression. The option `-m` outputs only the matching parts, without file names or XPath expressions; with `-M`, the matching -parts are prefixed with the corresponding file name. If `-r ` is set, -the [EXSLT function `:test()`](http://exslt.org/regexp/functions/test/) can -be used in the XPath expression for matching regular expressions. The option +parts are prefixed with the corresponding file name. If `-r ` is set, the +[EXSLT function `:test()`](https://exslt.github.io/regexp/functions/test/) +can be used in the XPath expression for matching regular expressions. The option `-i` indents the matching parts, and the option `-N` includes namespace declarations. Matching parts can be abbreviated to their first line by means of the option `-a`. The option `-s` normalises whitespace to spaces in the output. Processing instructions and comments in the XML files are ignored unless the options `-p` and `-P` are used. The `-C` option preserves color and formatting -codes when piping output through [GNU less](http://www.gnu.org/software/less/) +codes when piping output through [GNU less](https://www.gnu.org/software/less/) or similar programs. The options `-c`, `-l`, `-L`, `-n`, and `-q` mimic the behaviour of -[GNU grep](http://www.gnu.org/software/grep/). The latter option suppresses any +[GNU grep](https://www.gnu.org/software/grep/). The latter option suppresses any output, but still returns the exit status (`0` if there are matches, `1` if there are none, and `2` for errors).