summaryrefslogtreecommitdiff
path: root/static/unix-v10/man1/grep.1
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man1/grep.1
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man1/grep.1')
-rw-r--r--static/unix-v10/man1/grep.156
1 files changed, 56 insertions, 0 deletions
diff --git a/static/unix-v10/man1/grep.1 b/static/unix-v10/man1/grep.1
new file mode 100644
index 00000000..bd5a1010
--- /dev/null
+++ b/static/unix-v10/man1/grep.1
@@ -0,0 +1,56 @@
+.th GREP I 3/3/73
+.sh NAME
+grep \*- search a file for a pattern
+.sh SYNOPSIS
+.bd grep
+[
+.bd \*-v
+] [
+.bd \*-l
+] [
+.bd \*-n
+] expression [input] [output]
+.sh DESCRIPTION
+.it Grep
+will search the input file
+(standard input default)
+for each line containing the
+regular expression.
+Normally, each line found
+is printed on the output file
+(standard output default).
+If the
+.bd \*-v
+flag is used,
+all lines but those matching
+are printed.
+If the
+.bd \*-l
+flag is used,
+each line printed is
+preceded by its line number.
+If the
+.bd \*-n
+flag is used,
+no lines are printed,
+but the number of lines that would
+normally have been printed is reported.
+If interrupt is hit,
+the number of lines
+searched is printed.
+.s3
+For a complete description
+of the regular expression,
+see ed(I).
+Care should be taken when
+using the characters
+$ * [ ^ | ( ) and \\ in the regular
+expression as they are
+also meaningful to the shell.
+(Precede them by \\)
+.sh "SEE ALSO"
+ed(I), sh(I)
+.sh BUGS
+Lines
+are limited to 512 characters;
+longer lines are truncated.