Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

grep before and after

grep -B 5 -A 2 --color 'keyword' /path/to/file.log
Comment

grep something before

grep -B 3 -A 5 something.txt 
Comment

PREVIOUS NEXT
Code Example
Shell :: mac os check network ip 
Shell :: linux groups show name, password, id, members list 
Shell :: pip install tkinter 
Shell :: install deb package 
Shell :: install pyqt5 tools 
Shell :: log apache2 ubuntu 
Shell :: java change version mac 
Shell :: powershell check if string contains a word 
Shell :: remove junk files from ubuntu via terminal 
Shell :: unix delete file contents only 
Shell :: how to set remote url in git 
Shell :: wget with username and password 
Shell :: using wget with a proxy 
Shell :: shebang unix 
Shell :: remove netbeans snap 
Shell :: upgrade pytest version 
Shell :: how to install geoquery in r 
Shell :: download ganache cli for windows 
Shell :: how to open mongodb-compass 
Shell :: Please remove any global installs with one of the following commands: 
Shell :: fedora install snapd 
Shell :: git log one line 
Shell :: install ext-soap 
Shell :: close port 
Shell :: ubuntu get partition list 
Shell :: install git ubuntu 
Shell :: zsh add to path permanently 
Shell :: git orphan branch and remove all data 
Shell :: adb devices offline 
Shell :: gdown download zip file 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =