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

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -