Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

grep 10 line before

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 :: linux cp 
Shell :: awk output field separator 
Shell :: how to install spotify in ubuntu 
Shell :: npm i postgresql 
Shell :: cent os 8 delete all packages 
Shell :: Install MySQL FreeBSD 
Shell :: ubuntu 18.04 get public ip address 
Shell :: gnome set wallpaper command line 
Shell :: how to delete files in linux 
Shell :: install grub manually 
Shell :: Use slack in your terminal or CLI 
Shell :: mongodb database not connected docker 
Shell :: npm install webpack server 
Shell :: start docker image 
Shell :: linux change uid 
Shell :: ubuntu restart systemctl 
Shell :: vmware shared folder not showing 
Shell :: deploy docker to heroku 
Shell :: folium 
Shell :: Err:9 http://ppa.launchpad.net/plushuang-tw/uget-stable/ubuntu focal Release 404 Not Found [IP: 91.189.95.85 80] 
Shell :: show hidden files mac 
Shell :: pdf file 30mb 
Shell :: creating new repository 
Shell :: ubuntu essential commands 
Shell :: command to open snap gui 
Shell :: kubectl jq json pod name 
Shell :: bubulle epitceh 
Shell :: setting config source di linux 
Shell :: git create new remote oupstream 
Shell :: print what s in tarball 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =