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? -

Php - Delimiter must not be alphanumeric or backslash -

Delphi interface implements -