How to read text between two particular text in unix shell scripting -


i want read text between 2 particular words text file in unix shell scripting. example in following:

"my name sasuke uchiha." 

i want sasuke.

this 1 of many ways can done:

to capture text between "is" , "uchiha":

sed -n "s/^.*is \(.*\)uchiha.*/\1/p" infile 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -