Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

grep lines between two patterns in unix

$ sed -n '/aaa/,/cdn/p' file
aaa
b12
cdn
$ sed -n '/zdk/,/dke/p' file
zdk
aaa
b12
cdn
dke
Comment

PREVIOUS NEXT
Code Example
Shell :: how to create folder in github 
Shell :: dartlang ubuntu 
Shell :: linux install android sdk 
Shell :: how to start conda powershell windows 
Shell :: wsl2 settings 
Shell :: how to check if tensorflow is working on your pc 
Shell :: bash split a word into characters 
Shell :: PowerShell read CSV file line by line 
Shell :: command not found 
Shell :: how to add git bash to context menu 
Shell :: uninstall npm package 
Shell :: hibernate command 
Shell :: permission denied /dev/ttyusb0 
Shell :: rpm extract 
Shell :: Bluetooth problem Linux 
Shell :: anaconda install package 
Shell :: openssl serial number 
Shell :: kubectl get namespaces command 
Shell :: get docker container version from inside container 
Shell :: git revert back to specific commit 
Shell :: how do you merge two git repositories 
Shell :: how to get out of branch git 
Shell :: reconfigure gitlab 
Shell :: sudo passwd /Users/username 
Shell :: octave for ubuntu 20.04 
Shell :: how to echo string .sh 
Shell :: git local setup 
Shell :: git move change from master to new branch 
Shell :: react navigation install 
Shell :: django activate shell 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =