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 :: ansible ad hoc file module 
Shell :: install kex in kali linux wsl 
Shell :: i get your branch is ahead of master after I pulled from remote master 
Shell :: where does redis store data 
Shell :: wifi drivers realtek 8852 for Ubuntu 
Shell :: terminator linux is not start 
Shell :: bash code for loop 
Shell :: how to open a .sh file 
Shell :: Use R markdown in github README 
Shell :: jenkins install linux 
Shell :: get client secret azure app registration powershell 
Shell :: git added and modified files 
Shell :: remove htaccess files in all folders linux 
Shell :: how to move files that begine with uppercase in linux 
Shell :: aws create repository cli 
Shell :: bitnami wordpress enable ssh 
Shell :: ubuntu delete all virtual hosts 
Shell :: open command linux 
Shell :: undo termial 
Shell :: git restoring deleted files 
Shell :: git reset commit before file 
Shell :: kubectl create 
Shell :: install rabbitmq in ubuntu 20.04 
Shell :: connectivity_plus flutter 
Shell :: mac terminal wifi commands 
Shell :: sign a commit after push 
Shell :: docker logs path 
Shell :: zip exclude directory 
Shell :: helm upgrade repos 
Shell :: how to exit git bash 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =