Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

grep line after match

Include -A flag to add lines after match and -B flag to add lines before
grep match -A 3	#display match line and 3 after lines
grep match -B 2 #display match line and 2 lines before
Comment

PREVIOUS NEXT
Code Example
Shell :: awk delimiter comma 
Shell :: pip install cookiecutter 
Shell :: git list untracked files 
Shell :: remove dock from ubuntu 
Shell :: wsl2 curl localhost 
Shell :: generate keystore file for android 
Shell :: ubuntu 20.04 ifconfig public ip address 
Shell :: linux find files older than 15 minutes 
Shell :: search everithing for ubuntu 
Shell :: git pull a specific sha 
Shell :: how to move to directories in command prompt 
Shell :: add co author git 
Shell :: vi quit 
Shell :: install dpkg vscode 
Shell :: how to deploy heroku app 
Shell :: reset git file 
Shell :: how to deploy react and backend to github pages 
Shell :: uname 
Shell :: give sudo permission to vim ubuntu 
Shell :: how to open files using terminal in ubuntu 
Shell :: how to open terminal in vs code 
Shell :: find the process ID of a running process bash 
Shell :: check memcached status 
Shell :: what is for ubuntu debian or rpm 
Shell :: libuuid 
Shell :: c# check if word is installed 
Shell :: sqlite://// ubuntu path 
Shell :: files 666 folders 755 
Shell :: hostapd could not GET IP 
Shell :: create a ew remote tracking branch 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =