Added in data stream info
This commit is contained in:
1 parent
0d44c67874
commit
0ceecf3423
4 files changed
+33
-7
No files matched your search
@@ -1,6 +1,8 @@
|
||||
# lsof examples
|
||||
|
||||
`[ben@jamyn] ~/Documents/Projects/Python/mkdocs-pages$ lsof docs/index.md`
|
||||
In this example we can see that the docs/index.md file is currently open by the tail command
|
||||
|
||||
`[ben@jamyn ~/Documents/Projects/Python/mkdocs-pages]$ lsof docs/index.md`
|
||||
|
||||
```bash
|
||||
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
#Regex examples
|
||||
# Regex examples
|
||||
|
||||
##Match an IP address
|
||||
## Match an IP address
|
||||
`\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}`
|
||||
|
||||
If we use this expression on the following using grep to search the file
|
||||
If we use this expression on the following using grep to search the file
|
||||
|
||||
`grep -oP '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' log.txt'`
|
||||
|
||||
```bash
|
||||
103.252.153.201
|
||||
127.0.0.1 - - [30/Dec/2018 22:43:01] "GET / HTTP/1.0" 200 -
|
||||
|
||||
Reference in new issue
Block a user