-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
grep.scroll
39 lines (31 loc) · 1.22 KB
/
grep.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import ../code/conceptPage.scroll
id grep
name grep
appeared 1974
tags pl
isOpenSource true
documentation https://www.gnu.org/software/grep/manual/grep.html
documentation https://man7.org/linux/man-pages/man1/grep.1.html
centralPackageRepositoryCount 0
country United States
originCommunity AT&T Bell Laboratories
wikipedia https://en.wikipedia.org/wiki/Grep
example
$ grep root /etc/passwd
root:x:0:0:root:/root:/bin/bash
operator:x:11:0:operator:/root:/sbin/nologin
$ grep -n root /etc/passwd
1:root:x:0:0:root:/root:/bin/bash
12:operator:x:11:0:operator:/root:/sbin/nologin
$ grep -c false /etc/passwd
7
related unix regex perl
summary 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 a regular expression and print), which has the same effect: doing a global search with the regular expression and printing all matching lines. Grep was originally developed for the Unix operating system, but later available for all Unix-like systems.
backlinksCount 559
pageId 46642
dailyPageViews 619
created 2002
appeared 1974
hopl https://hopl.info/showlanguage.prx?exp=2295
isbndb 0
semanticScholar 0