mirror of
https://codeberg.org/kiss-community/repo
synced 2024-11-15 19:20:10 -07:00
63 lines
2.8 KiB
Plaintext
63 lines
2.8 KiB
Plaintext
|
gnugrep
|
||
|
________________________________________________________________________________
|
||
|
|
||
|
grep is a command-line utility for searching plain-text data sets for lines that
|
||
|
match a regular expression. Its name comes from the ed command g/re/p (globally
|
||
|
search for a regular expression and print matching lines), which has the same
|
||
|
effect. grep was originally developed for the Unix operating system, but later
|
||
|
available for all Unix-like systems and some others such as OS-9. [0]
|
||
|
|
||
|
Upstream: https://www.gnu.org/software/grep/
|
||
|
|
||
|
|
||
|
[000] Index
|
||
|
________________________________________________________________________________
|
||
|
|
||
|
* Installation ........................................................... [001]
|
||
|
* Setup .................................................................. [002]
|
||
|
* Usage .................................................................. [003]
|
||
|
* References ............................................................. [004]
|
||
|
|
||
|
|
||
|
[001] Installation
|
||
|
________________________________________________________________________________
|
||
|
|
||
|
+------------------------------------------------------------------------------+
|
||
|
| |
|
||
|
| $ kiss b gnugrep |
|
||
|
| |
|
||
|
+------------------------------------------------------------------------------+
|
||
|
|
||
|
|
||
|
[002] Setup
|
||
|
________________________________________________________________________________
|
||
|
|
||
|
To use GNU grep as the system grep, the alternatives system must be used. The
|
||
|
GNU grep implementation is very fast [1] and is recommended over the default
|
||
|
provided by busybox.
|
||
|
|
||
|
+------------------------------------------------------------------------------+
|
||
|
| |
|
||
|
| $ kiss a gnugrep /usr/bin/grep |
|
||
|
| $ kiss a gnugrep /usr/bin/egrep |
|
||
|
| $ kiss a gnugrep /usr/bin/fgrep |
|
||
|
| |
|
||
|
+------------------------------------------------------------------------------+
|
||
|
|
||
|
To undo these changes run 'kiss a', find the relevant output and run the
|
||
|
corresponding commands. Each line of output from 'kiss a' is a valid command
|
||
|
to give back to 'kiss a'.
|
||
|
|
||
|
|
||
|
[003] Usage
|
||
|
________________________________________________________________________________
|
||
|
|
||
|
Refer to the manual pages and command help output.
|
||
|
|
||
|
|
||
|
[004] References
|
||
|
________________________________________________________________________________
|
||
|
|
||
|
[0] https://en.wikipedia.org/wiki/Grep
|
||
|
[1] https://lists.freebsd.org/pipermail/freebsd-current/2010-August/019310.html
|